Fix a bug in string gather that the skipped string size overflows, which was detected...
authorqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 30 Apr 2009 10:43:13 +0000 (10:43 +0000)
committerqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 30 Apr 2009 10:43:13 +0000 (10:43 +0000)
The skipped string number is UINT16 type.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1559 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/StrGather.py

index 62d80e8..9657d40 100644 (file)
@@ -292,7 +292,7 @@ def CreateCFileContent(BaseName, UniObjectClass, IsCompatibleMode):
                 Index = Index + 1\r
             else:\r
                 if NumberOfUseOhterLangDef > 0:\r
-                    StrStringValue = WriteLine(StrStringValue, CreateArrayItem([StringSkipType, DecToHexStr(NumberOfUseOhterLangDef, 2), EFI_HII_SIBT_END]))\r
+                    StrStringValue = WriteLine(StrStringValue, CreateArrayItem([StringSkipType] + DecToHexList(NumberOfUseOhterLangDef, 4)))\r
                     NumberOfUseOhterLangDef = 0\r
                     ArrayLength = ArrayLength + 3\r
                 if Referenced and Item.Token > 0:\r