aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/iresolve.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-01-07 14:58:44 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-01-07 14:58:44 +0000
commite002afaa8e01395110c77de18bb7e0fa030ba019 (patch)
tree203a73ef36a0dbf4ceb00a25c30b1bcfdafabcb2 /gcc/fortran/iresolve.c
parenta58fe3c5ca1f0101c4af7f0c5b860cc4d49cd4cb (diff)
downloadgcc-e002afaa8e01395110c77de18bb7e0fa030ba019.zip
gcc-e002afaa8e01395110c77de18bb7e0fa030ba019.tar.gz
gcc-e002afaa8e01395110c77de18bb7e0fa030ba019.tar.bz2
PR libstdc++/87787 avoid undefined null args to memcpy and memmove
The C++ char_traits and ctype APIs do not disallow null pointer arguments, so we need explicit checks to ensure we don't forward null pointers to memcpy or memmove. PR libstdc++/87787 * include/bits/char_traits.h (char_traits::move): Do not pass null pointers to memmove. * include/bits/locale_facets.h (ctype<char>::widen(const char*, const char*, char*)): Do not pass null pointers to memcpy. (ctype<char>::narrow(const char*, const char*, char, char*)): Likewise. (ctype<char>::do_widen(const char*, const char*, char*)): Likewise. (ctype<char>::do_narrow(const char*, const char*, char, char*)): Likewise. From-SVN: r267651
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions