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
I know that there are other issues where what to do about crashing bugs is being discussed, but I think most of the other examples are code directly accessible to JavaScript via process.binding. Here is an example that is something more subtle, but nevertheless can be triggered.
constdgram=require('dgram');constutil=require('util');// Create object that passes instanceof Buffer checkfunctionFakeBuffer(){}util.inherits(FakeBuffer,Buffer);constmessage=newFakeBuffer();// Pass object to code that eventually calls Lengthdgram.createSocket('udp4').send(message,41234,'localhost',_=>{});
Activity
buffer: stricter Buffer.isBuffer
dgram: support Uint8Array input to send()