You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
First typed array is not zero-filled (v5.10.0) #6006
@thealphanerd ... quick test on v5.x with that additional check removed still shows the problem. Master includes that exact same check also and I'm unable to reproduce there.
Activity
MylesBorins commentedon Apr 1, 2016
I am able to reproduce. Not sure if the labels I have applied are correct or not. I'm doing a bisect right now to see what's up
/cc @nodejs/security
evanlucas commentedon Apr 1, 2016
Hm, I cannot reproduce it from the repl though...weird
vkurchatkin commentedon Apr 1, 2016
@evanlucas probably because some allocations are already made
MylesBorins commentedon Apr 1, 2016
Looks like the regression comes in from 3c02727
edit: wrong sha at first
evanlucas commentedon Apr 1, 2016
master is affected also
MylesBorins commentedon Apr 1, 2016
/cc @jasnell
MylesBorins commentedon Apr 1, 2016
I'm not 100% but I'm going to guess we are doing something wrong here 3c02727#diff-cd53544f44aab2c697bcd7b6a57f23ccR949
vkurchatkin commentedon Apr 1, 2016
Calling
Buffer.allocUnsafereproduces this stateevanlucas commentedon Apr 1, 2016
Passing the --zero-fill-buffers flag definitely makes it work
jasnell commentedon Apr 1, 2016
@thealphanerd ... quick test on v5.x with that additional check removed still shows the problem. Master includes that exact same check also and I'm unable to reproduce there.
MylesBorins commentedon Apr 1, 2016
I just ran a test with the following on master
output is
buffer: don't set `kNoZeroFill` flag in allocUnsafe
buffer: safeguard against accidental kNoZeroFill
buffer: safeguard against accidental kNoZeroFill
buffer: safeguard against accidental kNoZeroFill
buffer: safeguard against accidental kNoZeroFill
buffer: don't set `kNoZeroFill` flag in allocUnsafe