Skip to content
Snippets Groups Projects
Commit f9a681ac authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix possible negative offset to fseeko()

CID 350353
parent c920d0da
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2826 passed
...@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment