newlib-cygwin/winsup
Corinna Vinschen aa106b29a6 malloc/nano-malloc: correctly check for out-of-bounds allocation reqs
The overflow check in mEMALIGn erroneously checks for INT_MAX,
albeit the input parameter is size_t.  Fix this to check for
__SIZE_MAX__ instead.  Also, it misses to check the req against
adding the alignment before calling mALLOc.

While at it, add out-of-bounds checks to pvALLOc, nano_memalign,
nano_valloc, and Cygwin's (unused) dlpvalloc.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-11-17 10:52:34 +01:00
..
CVSChangeLogs.old
cygserver Cygwin: Drop autoconf variable all_host 2020-11-02 16:49:00 +00:00
cygwin malloc/nano-malloc: correctly check for out-of-bounds allocation reqs 2020-11-17 10:52:34 +01:00
doc Cygwin: Drop AC_SUBST(build_exeext) 2020-11-02 16:48:58 +00:00
testsuite Cygwin: testsuite: fix insecure usage of printf in libltp 2020-11-16 15:57:31 +01:00
utils Cygwin: Restore setting CC and CXX Makefile variables 2020-10-28 15:23:56 +00:00
CONTRIBUTORS Cygwin: Add David Macek to CONTRIBUTORS 2020-04-21 10:39:36 +02:00
COPYING
COPYING.LIB
CYGWIN_LICENSE
Makefile.common Cygwin: Remove nostdlib Makefile variable 2020-10-21 17:11:02 +01:00
Makefile.in Cygwin: Always configure in testsuite subdirectory 2020-11-08 14:40:34 +00:00
README
acinclude.m4 Cygwin: Remove --with-windows-{libs,headers} 2020-10-18 14:55:14 +01:00
aclocal.m4
autogen.sh Cygwin: Add testsuite directory to autogen.sh 2020-11-08 14:40:26 +00:00
config.guess
config.sub
configure Cygwin: Always configure in testsuite subdirectory 2020-11-08 14:40:34 +00:00
configure.ac Cygwin: Always configure in testsuite subdirectory 2020-11-08 14:40:34 +00:00
configure.cygwin Cygwin: Remove ccwrap 2020-10-18 14:55:13 +01:00
install-sh

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at https://cygwin.com
You might especially be interested in

https://cygwin.com/faq/faq.html#faq.programming.building-cygwin