mach-o: fix out-of-bounds read in bfd_mach_o_read_prebound_dylib
Reviewer confirms patch was committed, reprimands author for private emails and lack of CC.
The reviewer, Jan Beulich, informs the author that their patch to fix an out-of-bounds read in the mach-o parser within binutils has already been committed. The reviewer also expresses frustration with the author for sending duplicate emails (one to the thread, one private) and for not keeping the mailing list CC’d on private correspondence.
- reviewer
States the patch has been committed and admonishes the author for sending duplicate emails and for failing to keep the mailing list CC'd on private communications.
“First - why two pings (one here and one on the v1 thread)? And then, did you check the repo before sending the ping? I did commit your change on Friday. Also, please don't send private mails, always keep the list on Cc.”
- proposer
Followed up on the status of their patch, inquiring if further updates were needed.
“Following up to check if v3 of the patch looks good to be pushed, or if there are any further updates needed.”
Technical Tradeoffs
- Fixing memory safety issues like out-of-bounds reads is critical for software stability and security.
- Effective communication protocols (using mailing lists, clear subject lines, timely follow-ups) are vital for efficient open-source development.
In Details
This discussion is about a patch submitted to the binutils project, specifically targeting the bfd (Binary File Descriptor) library's handling of the mach-o object file format. The patch corrects an out-of-bounds read vulnerability within the bfd_mach_o_read_prebound_dylib function, which parses prebound dynamic libraries information in mach-o files. The reviewer confirms the patch was committed but criticizes the author's communication practices.
- mach-o
- Mach Object file format, the standard object file format used on macOS and iOS.
- bfd
- Binary File Descriptor library, part of binutils, providing a common interface to various object file formats.
- out-of-bounds read
- A memory access error where a program attempts to read data beyond the allocated buffer boundaries, potentially leading to crashes or security vulnerabilities.
- prebound dylib
- Refers to dynamic libraries in macOS that have their symbol addresses pre-resolved at link time, rather than at runtime.