]> git.proxmox.com Git - wasi-libc.git/commit
Make calloc set ENOMEM when failing due to overflow.
authorDan Gohman <sunfish@mozilla.com>
Mon, 22 Apr 2019 18:36:54 +0000 (11:36 -0700)
committerDan Gohman <sunfish@mozilla.com>
Tue, 23 Apr 2019 22:00:40 +0000 (15:00 -0700)
commit0df6243d52d8c46ae714bb1eadf2a29db993c504
treeb5eae46b6133cb85ad7ec989f08448e34cd420de
parent972067b74bf7e6ca8c37bdca25288315e76fc00b
Make calloc set ENOMEM when failing due to overflow.

This fixes a bug in upstream dlmalloc, where it doesn't set errno to
ENOMEM in overflow or footprint overrun cases.
dlmalloc/src/malloc.c