You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
writeUInt16BE: incorrect 'value of "value" is out of range.' error message? #24205
Platform: Linux Mint 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: don't know
From its name and its behavior, I'm think writeUInt16BE can only take up to 2 bytes (0xFFFF, 65535), but it accepts up to 4, although it ignores anything after 2.
Activity
Trott commentedon Nov 6, 2018
@nodejs/buffer
buffer: fix writeUInt16BE range check
buffer: fix writeUInt16BE range check
buffer: fix writeUInt16BE range check
buffer: fix writeUInt16BE range check
buffer: fix writeUInt16BE range check