www.delorie.com/archives/browse.cgi | search |
> There seems to be another problem as well. Some significantly smaller > requests that are still large enough that they must fail, e.g., > 4294378000U bytes, also cause malloc() to return non-NULL. I wouldn't trust any request bigger than 2G, because you never know when the OS is going to treat the number like a signed number. sbrk() is the interface to the OS; has anyone tried testing that independently of malloc? And has anyone tried testing GNU malloc to see if it has the same problems?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |