]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Use the ASSERT() for parameter checking as the 4th parameter of internal worker funct...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 May 2010 02:45:17 +0000 (02:45 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 May 2010 02:45:17 +0000 (02:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10540 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c

index 6a0e5eca45e8192754ce9d1bbb44b0484fe4d0fd..fb60d029a8c4447c0e6b40241de0fb02047e97b7 100644 (file)
@@ -108,6 +108,7 @@ GetBits (
 \r
   Creates Huffman Code mapping table for Extra Set, Char&Len Set \r
   and Position Set according to code length array.\r
+  If TableBits > 16, then ASSERT ().\r
 \r
   @param  Sd        The global scratch data\r
   @param  NumOfChar Number of symbols in the symbol set\r
@@ -143,6 +144,12 @@ MakeTable (
   UINT16  WordOfStart;\r
   UINT16  WordOfCount;\r
 \r
+  //\r
+  // The maximum mapping table width supported by this internal\r
+  // working function is 16.\r
+  //\r
+  ASSERT (TableBits <= 16);\r
+\r
   for (Index = 0; Index <= 16; Index++) {\r
     Count[Index] = 0;\r
   }\r