Revert "rtengine/draw.c: parse_qt: possible integer overflow"
This reverts commit c466177ccfc73b540f85a2d654fd3acb0a2db71c.
This commit is contained in:
parent
137be1f5e4
commit
6d190cb5fd
@ -6817,8 +6817,6 @@ void CLASS parse_qt (int end)
|
||||
while (ftell(ifp)+7 < end) {
|
||||
save = ftell(ifp);
|
||||
if ((size = get4()) < 8) return;
|
||||
if ((int)size < 0) return; // 2+GB is too much
|
||||
if (save + size < save) return; // 32bit overflow
|
||||
fread (tag, 4, 1, ifp);
|
||||
if (!memcmp(tag,"moov",4) ||
|
||||
!memcmp(tag,"udta",4) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user