diff options
author | Aaron Merey <amerey@redhat.com> | 2025-03-20 13:13:33 -0400 |
---|---|---|
committer | Aaron Merey <amerey@redhat.com> | 2025-03-24 14:43:03 -0400 |
commit | e3a6e85d67f1a48dec3e2557a83d6ce1544a58cb (patch) | |
tree | d6c34a63a2c4c2d9c362916f150c3255e1ac4fdf /sysdeps/unix/sysv/linux/m68k | |
parent | a71db81ed1353edd00ca2901d2fefd98c53209d3 (diff) | |
download | glibc-e3a6e85d67f1a48dec3e2557a83d6ce1544a58cb.zip glibc-e3a6e85d67f1a48dec3e2557a83d6ce1544a58cb.tar.gz glibc-e3a6e85d67f1a48dec3e2557a83d6ce1544a58cb.tar.bz2 |
Add _FORTIFY_SOURCE support for inet_pton
Add function __inet_pton_chk which calls __chk_fail when the size of
argument dst is too small. inet_pton is redirected to __inet_pton_chk
or __inet_pton_warn when _FORTIFY_SOURCE is > 0.
Also add tests to debug/tst-fortify.c, update the abilist with
__inet_pton_chk and mention inet_pton fortification in maint.texi.
Co-authored-by: Frédéric Bérat <fberat@redhat.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/m68k')
-rw-r--r-- | sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist b/sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist index 03818c4..95a68c7 100644 --- a/sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist +++ b/sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist @@ -2784,6 +2784,7 @@ GLIBC_2.4 xprt_unregister F GLIBC_2.41 sched_getattr F GLIBC_2.41 sched_setattr F GLIBC_2.42 __inet_ntop_chk F +GLIBC_2.42 __inet_pton_chk F GLIBC_2.42 pthread_gettid_np F GLIBC_2.5 __readlinkat_chk F GLIBC_2.5 inet6_opt_append F diff --git a/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist b/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist index a2b3d25..442e82b 100644 --- a/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist +++ b/sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist @@ -2951,6 +2951,7 @@ GLIBC_2.4 unshare F GLIBC_2.41 sched_getattr F GLIBC_2.41 sched_setattr F GLIBC_2.42 __inet_ntop_chk F +GLIBC_2.42 __inet_pton_chk F GLIBC_2.42 pthread_gettid_np F GLIBC_2.5 __readlinkat_chk F GLIBC_2.5 inet6_opt_append F |