Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: nodejs#7494 Reviewed-By: Ben Noordhuis <[email protected]>
- Loading branch information