buffer: fix unintended unsigned overflow
`offset` is user supplied variable and may be bigger than `ts_obj_length`. There is no need to subtract them and pass along, so just throw when the subtraction result would overflow. PR-URL: https://github.com/nodejs/node/pull/7494 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl>
parent
a528d0dd
Please register or sign in to comment