diff options
author | Michael Dawson <michael_dawson@ca.ibm.com> | 2017-09-25 11:37:18 -0400 |
---|---|---|
committer | Michael Dawson <michael_dawson@ca.ibm.com> | 2017-09-29 17:44:41 -0400 |
commit | cec6e21668be70cbd18b4672c4c3d29d4f953ab8 (patch) | |
tree | 236c2f7cb987c76bd486e2db2fd4e7d946b9dc28 /COLLABORATOR_GUIDE.md | |
parent | 98077446f9ed2baeb434e616edac7f970c34941f (diff) | |
download | android-node-v8-cec6e21668be70cbd18b4672c4c3d29d4f953ab8.tar.gz android-node-v8-cec6e21668be70cbd18b4672c4c3d29d4f953ab8.tar.bz2 android-node-v8-cec6e21668be70cbd18b4672c4c3d29d4f953ab8.zip |
n-api: add check for large strings
n-api uses size_t for the size of strings when specifying
string lengths. V8 only supports a size of int. Add
a check so that an error will be returned if the user
passes in a string with a size larger than will fit into
an int.
PR-URL: https://github.com/nodejs/node/pull/15611
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'COLLABORATOR_GUIDE.md')
0 files changed, 0 insertions, 0 deletions