Files
node/lib
Thomas Watson e146591002 stream: fix decoded fromList chunk boundary check
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>
2026-02-22 01:20:38 +01:00
..
2020-02-18 22:15:50 -08:00
2020-10-21 01:26:34 +02:00
2025-08-05 03:51:16 +00:00
2024-01-12 16:09:48 +00:00
2026-01-13 10:04:44 -03:00
2026-01-13 10:04:51 -03:00
2024-10-09 06:42:16 +00:00
2025-09-04 11:58:50 +00:00
2026-02-22 01:07:46 +01:00
2025-08-05 13:45:41 +00:00