ACK: [PATCH] iASL: Fix incorrect memory allocation

Alex Hung alex.hung at canonical.com
Tue Sep 5 05:29:07 UTC 2017


On 2017-09-04 05:05 AM, Colin King wrote:
> 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 */
> 

Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list