Mercurial > hg > octave-jordi > gnulib-hg
view doc/pastposix-functions/index.texi @ 18025:5201cc72e203
savedir: avoid undefined behavior in qsort call
GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
"runtime error: null pointer passed as argument 1,
which is declared to never be null"
* lib/savedir.c (streamsavedir): Avoid the call with no entries.
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Wed, 24 Jun 2015 19:08:08 +0100 |
parents | 6355dc4626b5 |
children |
line wrap: on
line source
@node index @section @code{index} @findex index POSIX specification: @url{http://www.opengroup.org/susv3xsh/index.html} Gnulib module: --- Portability problems fixed by Gnulib: @itemize @end itemize Portability problems not fixed by Gnulib: @itemize @item This function is missing on some platforms: Solaris 2.4, mingw, MSVC 9. @item This function is marked as ``legacy'' in POSIX. Better use @code{strchr} instead. @end itemize