mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
napi: fix memory corruption vulnerability
Fixes: https://hackerone.com/reports/784186 CVE-ID: CVE-2020-8174 PR-URL: https://github.com/nodejs-private/node-private/pull/195 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
0cb194ec6a
commit
656260b4b6
3 changed files with 31 additions and 3 deletions
|
@ -81,3 +81,5 @@ assert.throws(() => {
|
|||
assert.throws(() => {
|
||||
test_string.TestLargeUtf16();
|
||||
}, /^Error: Invalid argument$/);
|
||||
|
||||
test_string.TestMemoryCorruption(' '.repeat(64 * 1024));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue