buffer: add a check for byteLength in readIntBE() and readIntLE()
requested to merge github/fork/seppevs/buffer_add_a_check_for_byteLength_in_readIntBE_and_readIntLE into master
The 'byteLength' argument should be required and of type 'number'. It should have a value between 1 and 6.
This is a fix for issue: https://github.com/nodejs/node/issues/10515
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
buffer