Bug <35058>: uint16_t overflow in ld/pdb.c calculate_symbols_size/parse_symbols
薛皓琳
xuehaolin@uniontech.com
Fri Nov 27 02:33:14 GMT 2026
Hi,
I've reported a bug in ld/pdb.c that was not caught by the recent
commit 147e60cae54 ("Fix potential integer overflows in ld/pdb.c"):
https://sourceware.org/bugzilla/show_bug.cgi?id=35058
The same uint16_t truncation pattern exists in calculate_symbols_size()
and parse_symbols(). calculate_symbols_size() received no bounds check
at all, and the "if (len > size)" check added to parse_symbols() does
not trigger when len wraps to 0.
PoC files and ASan output are attached to the bug report.
Reporter: Haolin Xue<xuehaolin@uniontech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20261127/2976f6bb/attachment.htm>
More information about the Binutils
mailing list