[PATCH v2] stdio-common: Fix heap overflow in scanf %mc pattern
Andreas Schwab
schwab@suse.de
Mon Mar 23 08:58:45 GMT 2026
On Mär 23 2026, Rocket Ma wrote:
> + /* THIS TEST UNIT REQUIRE SOME HEAP LAYOUT! Which is related to
> + current ptmalloc, when malloc is updated, this test may be inaccurate.
> + Anyway, we should construct a case where we allocate a chunk just
> + lower than scanf-alloced chunk to detect if heap overflow happens. */
Would that be caught by mcheck?
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list