libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 8798ee43ec89f18984fd03bc64fb4c741c9342f3
parent 3ad79fe8fa67a3bbf70b3952494de16cde1ba28a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 30 Jun 2026 18:49:47 +0200

add missing theoretical 64-bit integer overflow check

Diffstat:
Msrc/plugins/qt_extractor.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/qt_extractor.c b/src/plugins/qt_extractor.c @@ -1551,7 +1551,7 @@ EXTRACTOR_qt_extract_method (struct EXTRACTOR_ExtractContext *ec) { hsize = 8; } - if ((asize < hsize) || (pos + asize > fsize)) + if ((asize < hsize) || (pos + asize > fsize) || (pos + asize < pos)) break; if (is_interesting_top_atom (&hdr[4]) &&