DescriptionFix a segment-fault caused by Value::IntegerValue
First discovered in a Node.js bug, cf. [1] and [2]. Handle zapping helps
exposing this bug in Release builds while hiding it in Debug. (Thank you
indutny<fedor@indutny.com> and skomski<mail@skomski.com> for the detail.)
The macros hide it but PREPARE_FOR_EXECUTION_PRIMITIVE is basically a
scoped operation. Outside the else block, num is no longer rooted.
(Thank you bnoordhuis<ben@strongloop.com> for the detail.)
[1] https://github.com/nodejs/node/issues/2721
[2] https://github.com/nodejs/node/pull/2722
TEST=tools/run-tests.py --arch-and-mode=x64.release cctest/test-api/NoSegmentationFault
Patch Set 1 #
Total comments: 2
Messages
Total messages: 9 (4 generated)
|