assert: Add test for CVE-2025-0395
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 31 Jan 2025 17:16:30 +0000 (12:16 -0500)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
commitb4ac8fb59f3e3cb82d4044002caa7d93a414df47
tree6bf119ee6b32c6d679371a24ca3a0a83baf4bda2
parent2abfda367ff7edec76c40306b772c5ddc62a5968
assert: Add test for CVE-2025-0395

Use the __progname symbol to override the program name to induce the
failure that CVE-2025-0395 describes.

This is related to BZ #32582

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit cdb9ba84191ce72e86346fb8b1d906e7cd930ea2)
(cherry picked from commit 31eb872cb21449832ab47ad5db83281d240e1d03
                and commits adding support_need_proc & xgetline)

Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2025-0395-2.diff
assert/Makefile
assert/tst-assert-sa-2025-0001.c [new file with mode: 0644]
support/Makefile
support/support.h
support/support_need_proc.c [new file with mode: 0644]
support/xgetline.c [new file with mode: 0644]
support/xstdio.h