Hi all, In (somewhat) recent discussions about _FORTIFY_SOURCE level 3, a common snag to hit seems to be abuse of malloc_usable_size(). The attached patch is my attempt at making the situation easier to sort through. See siddhesh's comment on GitHub.[0] I wonder if the language needs to be stronger. [0]: https://github.com/systemd/systemd/issues/22801#issuecomment-1343041481 Best, Mingye Wang (Artoria2e5)
Attachment:
0001-malloc_usable_size.3-Warn-about-_FORTIFY_SOURCE-inte.patch
Description: Binary data