From 8eeb51d1179900750b88b647630ee7de75da830e Mon Sep 17 00:00:00 2001 From: chengyuli Date: Fri, 22 Aug 2025 17:24:51 +0800 Subject: [PATCH] buffer concat fix https://gitee.com/openharmony/commonlibrary_ets_utils/issues/ICUAWZ Signed-off-by: chengyuli Change-Id: I81b665b337644e5f517c3544d81615d79ed2589d --- js_api_module/buffer/src/js_buffer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_api_module/buffer/src/js_buffer.ts b/js_api_module/buffer/src/js_buffer.ts index 7e5b9624..ff7eb843 100644 --- a/js_api_module/buffer/src/js_buffer.ts +++ b/js_api_module/buffer/src/js_buffer.ts @@ -1963,7 +1963,7 @@ function concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer { rangeErrorCheck(totalLength, 'totalLength', 0, UINT32MAX); - let buffer = allocUninitializedFromPool(totalLength); + let buffer = alloc(totalLength); let offset = 0; for (let i = 0, len = list.length; i < len; i++) { const buf = list[i]; -- Gitee