Correct `fromList()` in decoded string mode to compare `n` against the current chunk length, not the buffer array length. This prevents over-consuming chunks, which can corrupt readable state and crash with `TypeError` when mixing `setEncoding()` and `read(n)`. PR-URL: https://github.com/nodejs/node/pull/61884 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> |
||
|---|---|---|
| .. | ||
| add-abort-signal.js | ||
| compose.js | ||
| destroy.js | ||
| duplex.js | ||
| duplexify.js | ||
| duplexpair.js | ||
| end-of-stream.js | ||
| from.js | ||
| lazy_transform.js | ||
| legacy.js | ||
| operators.js | ||
| passthrough.js | ||
| pipeline.js | ||
| readable.js | ||
| state.js | ||
| transform.js | ||
| utils.js | ||
| writable.js | ||