[PATCH] iASL: Fix incorrect memory allocation

Colin King colin.king at canonical.com
Mon Sep 4 12:05:19 UTC 2017


From: Colin Ian King <colin.king at canonical.com>

Was using UtLocalCalloc instead of UtStringCacheCalloc.
Reported by Colin Ian King.
ACPICA BZ 1416

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpica/source/compiler/asldebug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/acpica/source/compiler/asldebug.c b/src/acpica/source/compiler/asldebug.c
index 684e2224..9640a841 100644
--- a/src/acpica/source/compiler/asldebug.c
+++ b/src/acpica/source/compiler/asldebug.c
@@ -356,7 +356,7 @@ UtCreateEscapeSequences (
 
     /* New string buffer, 3 extra chars per escape (4 total) */
 
-    OutString = UtLocalCalloc (InStringLength + (EscapeCount * 3));
+    OutString = UtStringCacheCalloc (InStringLength + (EscapeCount * 3));
     OutStringPtr = OutString;
 
     /* Convert non-ascii or non-printable chars to escape sequences */
-- 
2.14.1




More information about the fwts-devel mailing list