Commit graph

2 commits

Author SHA1 Message Date
Luigi Pinca
3d608bbe8b
test: skip the test if the buffer allocation fails
Use the error message as another condition to skip the test when the
buffer allocation fails.

Refs: 795dd8eb79
Refs: e9c6004a2d
PR-URL: https://github.com/nodejs/node/pull/58738
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2025-06-20 06:12:31 +00:00
zhenweijin
8123be16a5 string_decoder: throw an error when writing a too long buffer
PR-URL: https://github.com/nodejs/node/pull/52215
Fixes: https://github.com/nodejs/node/issues/52214
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-05-04 08:41:05 -07:00