mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 02:31: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) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
// Critical bug: buffer overrun
|
||||
if (fread(buff, len, 1, p_file) != 1) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user