diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-04-25 16:53:42 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-04-25 16:53:42 +0000 |
commit | 6b8f78e0a6a7880856440b372097482adb326592 (patch) | |
tree | 643f58d38011b3076bfc6a234d83f22c69487b8c /source/compiler/aslprepkg.c | |
parent | 7c6f304a2eb855cf2d71ca0638d4f3c72f436fcd (diff) |
Notes
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 c05d19016ce3..b4f96955def5 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 */ |