Skip to content

Commit

Permalink
fixup! tty: validate file descriptor to avoid int32 overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Mar 19, 2021
1 parent a37d2cf commit 544bd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pseudo-tty/test-tty-isatty.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ strictEqual(isatty(2), true, 'stderr reported to not be a tty, but it is');

strictEqual(isatty(-1), false, '-1 reported to be a tty, but it is not');
strictEqual(isatty(55555), false, '55555 reported to be a tty, but it is not');
strictEqual(isatty(2**31), false, '2^31 reported to be a tty, but it is not');
strictEqual(isatty(2 ** 31), false, '2^31 reported to be a tty, but it is not');
strictEqual(isatty(1.1), false, '1.1 reported to be a tty, but it is not');
strictEqual(isatty('1'), false, '\'1\' reported to be a tty, but it is not');
strictEqual(isatty({}), false, '{} reported to be a tty, but it is not');
Expand Down

0 comments on commit 544bd16

Please sign in to comment.