repl: fix crash with large buffer tab completion · nodejs/node@3683f6b · GitHub
Skip to content

Commit 3683f6b

Browse files
XadillaXaddaleax
authored andcommitted
repl: fix crash with large buffer tab completion
If the buffer or array is too large to completion, make a dummy smallest substitute object for it and emit a warning. PR-URL: #13817 Fixes: #3136 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
1 parent f8d76dc commit 3683f6b

2 files changed

Lines changed: 97 additions & 5 deletions

File tree

lib/repl.js

Lines changed: 32 additions & 5 deletions

test/parallel/test-repl-tab-complete.js

Lines changed: 65 additions & 0 deletions

0 commit comments

Comments
 (0)