From: Jakub Jelinek Date: Fri, 1 Sep 2017 13:47:04 +0000 (+0200) Subject: re PR sanitizer/81902 (new -fsanitize=pointer-overflow option undocumented) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ca3c6ef7110fb842cf8175a58d91d239c418bbe;p=gcc.git re PR sanitizer/81902 (new -fsanitize=pointer-overflow option undocumented) PR sanitizer/81902 * doc/invoke.texi: Document -fsanitize=pointer-overflow. From-SVN: r251596 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8d36fa6563d..71244e91417 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2017-09-01 Jakub Jelinek + PR sanitizer/81902 + * doc/invoke.texi: Document -fsanitize=pointer-overflow. + PR sanitizer/81923 * asan.c (create_odr_indicator): Strip name encoding from assembler name before appending it after __odr_asan_. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index ab76c1b10bb..f7bad9d2300 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -11074,6 +11074,12 @@ This option enables instrumentation of C++ member function calls, member accesses and some conversions between pointers to base and derived classes, to verify the referenced object has the correct dynamic type. +@item -fsanitize=pointer-overflow +@opindex fsanitize=pointer-overflow + +This option enables instrumentation of pointer arithmetics. If the pointer +arithmetics overflows, a run-time error is issued. + @end table While @option{-ftrapv} causes traps for signed overflows to be emitted,