Commit Graph

4 Commits

Author SHA1 Message Date
Dan Gohman
0df6243d52 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.
2019-04-23 15:00:40 -07:00
Dan Gohman
7ba6adfc61 Fix miscellaneous lint warnings. 2019-04-15 09:47:16 -07:00
Dan Gohman
320054e84f WASI libc prototype implementation.
This incoporates pieces from musl-libc, cloudlibc, cloudabi, libpreopen,
and dlmalloc, as well as a significant amount of new code.
2019-03-27 07:59:55 -07:00
Dan Gohman
dbfccac2e4 Add a malloc implementation using dlmalloc. 2019-01-10 15:42:34 -08:00