Dimanche 06 Décembre 2026 08:04:51 GMT+01:00

Netcrook

AccueilManifeste
Actualités
Techcrook
Geocrook
WikicrookÉquipeAppContact
EnglishItaliano

WIKICROOK

ReadbleStream BYOB

A JavaScript stream mode that lets code supply its own buffer for efficiency and lower copying.

ReadableStream BYOB (“bring your own buffer”) is a JavaScript stream mode in which the consumer provides a buffer for incoming data. This can reduce extra allocations and copying compared with the stream allocating buffers itself.

Because browser engines manage these buffers across complex stream operations, memory-safety bugs can have security consequences. Incorrect handling of a BYOB buffer’s lifetime or ownership may contribute to issues such as a use-after-free, where software accesses memory after it has been released. Attackers may try to trigger such bugs through crafted web content; browser vendors fix them with safer memory handling and patches. Users should keep browsers updated, while developers should follow the stream API’s buffer-lifetime rules.

← index WIKICROOK