* lib/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
+2017-05-19 Paul Eggert <eggert@cs.ucla.edu>
+
+ argp: fix pointer-subtraction bug
+ * lib/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
+
2017-05-19 Bruno Haible <bruno@clisp.org>
printf-posix tests: Avoid test failure with "gcc --coverage".
/* Fix up the short options pointers from HOL. */
for (e = entries, left = hol->num_entries; left > 0; e++, left--)
- e->short_options += (short_options - hol->short_options);
+ e->short_options
+ = short_options + (e->short_options - hol->short_options);
/* Now add the short options from MORE, fixing up its entries
too. */