summaryrefslogtreecommitdiff
path: root/libc/stdio/snprintf.c
diff options
context:
space:
mode:
authorlinted <linted@users.noreply.github.com>2023-01-21 15:22:48 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2023-01-22 09:31:12 +0100
commit60f1d7cff4c17d3be239bb86237010404d75f7b7 (patch)
treed6d6e6e9d9f9579360e22edd23e27b2f07ac2bf6 /libc/stdio/snprintf.c
parent40f4a56f4311c0e39e145160a38c4eff7942b697 (diff)
Fix for CVE-2022-29503.
Changed linux thread's stack allocation mmap to use new MAP_FIXED_NOREPLACE flag on kernels >4.17. For older kernels, a check is added to see if requested address matches the address received. If the addresses don't match, an error is returned and thread creation is aborted. Signed-off-by: linted <linted@users.noreply.github.com>
Diffstat (limited to 'libc/stdio/snprintf.c')
0 files changed, 0 insertions, 0 deletions