|author||Rich Felker <email@example.com>||2013-06-27 12:48:59 -0400|
|committer||Rich Felker <firstname.lastname@example.org>||2013-06-27 12:48:59 -0400|
disallow creation of objects larger than PTRDIFF_MAX via mmap
internally, other parts of the library assume sizes don't overflow ssize_t and/or ptrdiff_t, and the way this assumption is made valid is by preventing creating of such large objects. malloc already does so, but the check was missing from mmap. this is also a quality of implementation issue: even if the implementation internally could handle such objects, applications could inadvertently invoke undefined behavior by subtracting pointers within an object. it is very difficult to guard against this in applications, so a good implementation should simply ensure that it does not happen.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions