diff options
Diffstat (limited to 'source/compiler/aslprepkg.c')
-rw-r--r-- | source/compiler/aslprepkg.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/compiler/aslprepkg.c b/source/compiler/aslprepkg.c index c05d190..b4f9695 100644 --- a/source/compiler/aslprepkg.c +++ b/source/compiler/aslprepkg.c @@ -467,6 +467,12 @@ ApCheckPackageList ( Count, ExpectedCount); break; } + if (Count > ExpectedCount) + { + ApPackageTooLarge (PredefinedName, SubPackageOp, + Count, ExpectedCount); + break; + } ApCheckPackageElements (PredefinedName, Op, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, @@ -503,6 +509,12 @@ ApCheckPackageList ( Count, ExpectedCount); break; } + if (Count > ExpectedCount) + { + ApPackageTooLarge (PredefinedName, SubPackageOp, + Count, ExpectedCount); + break; + } /* Check each object/type combination */ |