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> |
||
|---|---|---|
| .. | ||
| argz | ||
| ctype | ||
| errno | ||
| iconv | ||
| include | ||
| locale | ||
| machine | ||
| misc | ||
| posix | ||
| reent | ||
| search | ||
| signal | ||
| ssp | ||
| stdio | ||
| stdio64 | ||
| stdlib | ||
| string | ||
| sys | ||
| syscalls | ||
| time | ||
| unix | ||
| xdr | ||
| Makefile.am | ||
| Makefile.in | ||
| aclocal.m4 | ||
| configure | ||
| configure.in | ||
| libc.in.xml | ||
| libc.texinfo | ||
| saber | ||
| sys.tex | ||