nodejs: backport a patch to prevent brotli crashing nodejs

Brotli can crash nodejs (on ARM), because the memory allocated for
brotli wasn't properly aligned.

https://github.com/google/brotli/issues/1159
https://github.com/nodejs/node/commit/dc035bbc9b310ff8067bc0dad22230978489c061

Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jeroen Hofstee
2025-04-28 15:25:07 +02:00
committed by Khem Raj
parent ffa7516238
commit 64760af3c3
2 changed files with 65 additions and 0 deletions
@@ -29,6 +29,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
file://0001-deps-disable-io_uring-support-in-libuv.patch \
file://0001-positional-args.patch \
file://0001-custom-env.patch \
file://zlib-fix-pointer-alignment.patch \
file://run-ptest \
"
SRC_URI:append:class-target = " \