Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
f9a681ac
Commit
f9a681ac
authored
Mar 02, 2022
by
Rob Swindell
💬
Browse files
Fix possible negative offset to fseeko()
CID 350353
parent
c920d0da
Pipeline
#2826
passed with stage
in 9 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/sbbs3/sbbsecho.c
src/sbbs3/sbbsecho.c
+2
-0
No files found.
src/sbbs3/sbbsecho.c
View file @
f9a681ac
...
@@ -3595,6 +3595,8 @@ bool getzpt(FILE* stream, fmsghdr_t* hdr)
...
@@ -3595,6 +3595,8 @@ bool getzpt(FILE* stream, fmsghdr_t* hdr)
bool
intl_found
=
false
;
bool
intl_found
=
false
;
pos
=
ftello
(
stream
);
pos
=
ftello
(
stream
);
if
(
pos
<
0
)
return
false
;
len
=
fread
(
buf
,
1
,
0x1000
,
stream
);
len
=
fread
(
buf
,
1
,
0x1000
,
stream
);
for
(
i
=
0
;
i
<
len
;
i
++
)
{
for
(
i
=
0
;
i
<
len
;
i
++
)
{
if
(
buf
[
i
]
==
'\n'
)
/* ignore line-feeds */
if
(
buf
[
i
]
==
'\n'
)
/* ignore line-feeds */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment