FRIDAY, APRIL 17, 2026
stdio-common — Proposed
Add regression test for scanf %mc buffer overflow
This patch adds a regression test for a buffer overflow vulnerability in scanf's %mc format specifier.
A regression test is being added to stdio-common to verify the fix for bug #34008, which involves a buffer overflow in vfscanf with the %Nmc format specifier. The test is confirmed to fail before the fix and pass after. A copyright correction is requested.
Technical Tradeoffs
- Adds a new test case to the test suite.
- Requires additional dependencies for the test environment (MALLOC_CHECK_, LD_PRELOAD).