This commit inserts a bounds check in fd_pread for the offset parameter. This is necessary because an implicit unsigned-to-signed integer conversion is performed when uv_fs_read is called. Such a conversion results in implementation-defined behavior. One such behavior is the offset wrapping.
This commit inserts a bounds check in
fd_pread
for theoffset
parameter. This is necessary because an implicit unsigned-to-signed integer conversion is performed whenuv_fs_read
is called. Such a conversion results in implementation-defined behavior. One such behavior is the offset wrapping.fixes #257