]> git.ipfire.org Git - thirdparty/glibc.git/commit
argp: fix pointer-subtraction bug
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jan 2021 01:06:16 +0000 (02:06 +0100)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 4 Feb 2021 19:44:20 +0000 (16:44 -0300)
commit5ec029c8835b71d7a3d6036c9358198b4d9e59fc
tree5e99ce85d7d23520c1047bfb4510b4d465607f29
parentdfc3907cde01f1f15d962f3c9eda9fad1fc7b74f
argp: fix pointer-subtraction bug

* argp/argp-help.c (hol_append): Don't subtract pointers to
different arrays, as this can run afoul of -fcheck-pointer-bounds.
See the thread containing Bruno Haible's report in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
argp/argp-help.c