diff options
Diffstat (limited to 'source/compiler/aslcache.c')
-rw-r--r-- | source/compiler/aslcache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/compiler/aslcache.c b/source/compiler/aslcache.c index d3fddfea5721..094c6422c1b8 100644 --- a/source/compiler/aslcache.c +++ b/source/compiler/aslcache.c @@ -8,7 +8,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp. * All rights reserved. * * 2. License @@ -210,7 +210,8 @@ UtLocalCacheCalloc ( } } - if ((AslGbl_StringCacheNext + Length) >= AslGbl_StringCacheLast) + if ((!AslGbl_StringCacheNext) || + ((AslGbl_StringCacheNext + Length) >= AslGbl_StringCacheLast)) { /* Allocate a new buffer */ |