https://sourceware.org/bugzilla/show_bug.cgi?id=33549
--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=626360da44457075f2d9026f0d1d356e5b75c002 commit 626360da44457075f2d9026f0d1d356e5b75c002 Author: Alan Modra <[email protected]> Date: Mon Nov 3 13:01:42 2025 +1030 ctf-archive sanity checks Existing code checks that the first uint64_t ctfa_magic field is available before reading but neglects to check that the last uint64_t ctfa_ctfs is available before reading it in ctf_arc_bufpreamble. ctf_arc_bufopen sets up a pointer to the struct ctf_archive in ctf_new_archive_internal. Extend the check to cover the entire struct. PR 33548 PR 33549 * ctf-archive.c (ctf_arc_bufpreamble, ctf_arc_bufopen): Check that buffer contains at least an entire struct ctf_archive when accessing such a struct. -- You are receiving this mail because: You are on the CC list for the bug.
