Closed kemonats closed 3 years ago
Changes:
mmap() returns MAP_FAILED on error, not NULL
mmap()
MAP_FAILED
NULL
The current version does not validate hexadecimal digits.
Checking the values returned by strndup() and fstat() in get_buffer() is missing.
strndup()
fstat()
get_buffer()
Changes:
mmap()
returnsMAP_FAILED
on error, notNULL
The current version does not validate hexadecimal digits.
Checking the values returned by
strndup()
andfstat()
inget_buffer()
is missing.