Skip to content

tty: avoid oob warning in TTYWrap::GetWindowSize()

If we run node with flag --trace_array_abuse, we will see many warnings like

[OOB array elements write (array length = 1, element accessed = 1) in new ~WriteStream+877 at tty.js:59]

These logs generated by CheckArrayAbuse. If we set env NODE_DEBUG, we get these messages for tty module. Other warnings generated from process.binding and StackPush

Step to reproduce:
NODE_DEBUG=module node --trace_array_abuse -e ''
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

tty

Merge request reports

Loading