Page MenuHomePhorge

repro_typedarray_metadata_leak.cjs
No OneTemporary

Size
330 B
Referenced Files
None
Subscribers
None

repro_typedarray_metadata_leak.cjs

'use strict';
const total = 600000;
const step = 100000;
let checksum = 0;
for (let i = 0; i < total; i++) {
const buf = Buffer.alloc(32);
buf[0] = i & 255;
checksum ^= buf[0];
if ((i + 1) % step === 0) {
console.log(`allocated ${i + 1}`);
}
}
console.log(`OK: allocated ${total} buffers checksum=${checksum}`);

File Metadata

Mime Type
application/javascript
Expires
Wed, Jun 17, 1:14 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
574022
Default Alt Text
repro_typedarray_metadata_leak.cjs (330 B)

Event Timeline