mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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>
This commit is contained in:
@ -2515,4 +2515,5 @@ GLIBC_2.40 __riscv_hwprobe 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
|
||||
|
@ -2715,4 +2715,5 @@ GLIBC_2.40 __riscv_hwprobe 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
|
||||
|
Reference in New Issue
Block a user