From 8232c299742d82ef2e450d84a5e28a9720feca30 Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Fri, 1 Sep 2017 08:09:52 -0700 Subject: [PATCH] iASL: Fix incorrect memory allocation Was using UtLocalCalloc instead of UtStringCacheCalloc. Reported by Colin Ian King. ACPICA BZ 1416 --- source/compiler/asldebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/asldebug.c b/source/compiler/asldebug.c index 684e22248..9640a8416 100644 --- a/source/compiler/asldebug.c +++ b/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 */