RFC: non-AI hardening of ld/pdb.c
Nick Clifton
nickc@redhat.com
Fri Nov 20 10:05:28 GMT 2026
Hi Guys,
A problem was reported a while ago with a bit of code in ld/pdb.c.
Unfortunately it looks like an AI agent might have been used to create
the patch to fix the issue. (We have been unbale to confirm or deny
this). So, since I have not actually read the patch submission, I
have gone ahead and created my own patch instead.
I may however have gone slightly overboard...
Looking at the code, there were several other places where similar
integer overflows could - theoretically - occur, and so I decided to
fix those too. Then there were some minor tidyups and code
reformatting as well. All of which has resulted in the attached -
human created - patch.
Any comments, corrections or suggestions before I check it in ?
Cheers
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld.pdb.c.patch
Type: text/x-patch
Size: 17027 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20261120/2b5421a7/attachment-0001.bin>
More information about the Binutils
mailing list