mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Add comment about buffer overrun
This commit is contained in:
parent
8748e26ab3
commit
af3216b7b7
@ -57,6 +57,8 @@ MxResult ModelDbPart::Read(FILE* p_file)
|
|||||||
if (fread(&len, sizeof(len), 1, p_file) != 1) {
|
if (fread(&len, sizeof(len), 1, p_file) != 1) {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Critical bug: buffer overrun
|
||||||
if (fread(buff, len, 1, p_file) != 1) {
|
if (fread(buff, len, 1, p_file) != 1) {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user