summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/HiiDatabaseDxe
Commit message (Collapse)AuthorAgeFilesLines
* Sync patch r12472 from main trunk.vanjeff2012-01-211-1/+5
| | | | | | | Add pointer check for NULL before dereference it. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@12952 6f19259b-4bc3-4df7-8a09-765794883524
* sync patch r10492, r10780, r10877, r10880, r10955 from main trunk.vanjeff2011-04-192-2/+2
| | | | | | Add security check to make code run safe. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@11549 6f19259b-4bc3-4df7-8a09-765794883524
* Add the missing check for NULL pointer before use it.lgao42010-02-271-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10116 6f19259b-4bc3-4df7-8a09-765794883524
* Enhance SetupBrowser to support new UEFI HiiFormMap featurelgao42010-02-251-1/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10069 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Correct File header to ## @filelgao42010-02-241-6/+6
| | | | | | 2. Remove unnecessary .common] postfix on section. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10052 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Update GetStringWorker() of HiiDataBaseDxe to only search in other ↵lgao42010-02-221-3/+10
| | | | | | | | language and not update the StringSize to avoid GetString() buffer overflow. 2. Update SetupBrowser to correctly handle ordered list option. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10041 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiDataBase to make sure that the installed StringPackages contains ↵lgao42010-02-111-1/+87
| | | | | | the same number string ID. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9989 6f19259b-4bc3-4df7-8a09-765794883524
* 1. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout ↵erictian2010-02-112-3/+7
| | | | | | | | event. 2. cleanup HiiDataBaseDxe to directly use gEfiHiiKeyBoardLayoutGuid which is used as the guid of event group. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9978 6f19259b-4bc3-4df7-8a09-765794883524
* Fix ICC build break by do data conversion.lgao42010-02-101-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9963 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiString Protocol and HiiSetString Api in HiiLiblgao42010-02-093-84/+189
| | | | | | | 1. Reserve the unique string identifier for all languages in the package list. 2. Track MaxStringId to do the simple check for the requested StringId > MaxStringId, which can improve performance. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9954 6f19259b-4bc3-4df7-8a09-765794883524
* Add some security check.xdu22010-02-051-2/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9934 6f19259b-4bc3-4df7-8a09-765794883524
* Fix some coding style issues in MdeModulePkg.rsun32010-01-151-4/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9774 6f19259b-4bc3-4df7-8a09-765794883524
* Some HII related definitions change. Note these changes are inconsistent ↵rsun32010-01-142-4/+8
| | | | | | with current UEFI 2.3 spec. They are supposed to be in later errata document. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9744 6f19259b-4bc3-4df7-8a09-765794883524
* EFI_HII_DATABASE_PROTOCOL.NewPackageList() allows installation of multiple ↵rsun32009-11-201-5/+3
| | | | | | package lists with same package list GUID onto different handles. According, change behavior of the HII Library function HiiAddPackages() to be consistent with EFI_HII_DATABASE_PROTOCOL.NewPackageList(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9452 6f19259b-4bc3-4df7-8a09-765794883524
* Correctly get the width of orderedlist question.lgao42009-10-271-24/+30
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9376 6f19259b-4bc3-4df7-8a09-765794883524
* Fix warnings generated by GCC.jljusten2009-10-021-0/+1
| | | | | | | These warnings seem to have been triggered by the recent change of EFI_STATUS from INTN to UINTN. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9329 6f19259b-4bc3-4df7-8a09-765794883524
* fix the HiiStrIdToImage sct failure, which is caused by wrong algorithm of ↵eric_tian2009-06-031-2/+9
| | | | | | finding right-most line break opportunity. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8446 6f19259b-4bc3-4df7-8a09-765794883524
* Roll back changes to apply GetBestLanguage() in HiiDataBase. Exact language ↵rsun32009-05-263-20/+61
| | | | | | match should be used in HiiDatabase. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8384 6f19259b-4bc3-4df7-8a09-765794883524
* Correct the check to the valid device path. The device path can't be less ↵lgao42009-05-261-1/+1
| | | | | | than the basic header. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8381 6f19259b-4bc3-4df7-8a09-765794883524
* refine the implementation of HiiStringToImage:eric_tian2009-05-211-273/+290
| | | | | | | | | 1. Remove the limitation of MAX_STRING_LENGTH and according to actual string length to store glyph info 2. fix a issue when print multi-lines, the next line will overlaps the above line. The original implementation doesn't recalculate the start point of X/Y axis. 3. refine the flow to avoid the meaningless recursive call. 4. modify the usage of "Index" to force them 1/1 mapping between glyphbuf and string. So the RowInfoArray and ColumnInfoArray can reflect the actual situation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8371 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiDataBase to fix the SCT hang issues by the invalid device path.lgao42009-05-201-48/+170
| | | | | | Update the driver config access protocol extractconfig and routeconfig interface to check the input parameters. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8349 6f19259b-4bc3-4df7-8a09-765794883524
* rename array name to avoid naming collision.vanjeff2009-05-201-4/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8340 6f19259b-4bc3-4df7-8a09-765794883524
* Fix K8 and Sct failure.lgao42009-05-193-58/+109
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8337 6f19259b-4bc3-4df7-8a09-765794883524
* Fix K8 issues in HiiDataBaselgao42009-05-182-99/+149
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8325 6f19259b-4bc3-4df7-8a09-765794883524
* Correct DriverSample to produce the ConfigAccess protocollgao42009-05-181-2/+4
| | | | | | And fix the bug in HiiDataBase to incorrectly free pool. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8321 6f19259b-4bc3-4df7-8a09-765794883524
* Retire original HII APIs: IfrLibExtractDefault and ConstructConfigAltResp, ↵lgao42009-05-181-14/+13
| | | | | | which are replaced by HiiSetToDefaults API. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8319 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiDataBase to fix parsing Hii package error. Some HiiPackages have ↵lgao42009-05-141-5/+24
| | | | | | no varstore and question, they has no the built in default value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8314 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Update the implementation of HII ConfigRouting Protocol in HiiDataBase ↵lgao42009-05-142-84/+1873
| | | | | | | | | | | module to follow new ECRs. 1) ConfigRouting Protocol ExtractConfig interface must return the default values built in IFR that were not returned by ConfigAccess.ExtractConfig. 2) The parameters of ConfigRouting Protocol interfaces are clarified to the specific configuration string syntax. 2. Implement the last two HiiLib interfaces: HiiSetToDefaults and HiiValidateSettings. 3. Update DriverSample driver to use these two APIs. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8313 6f19259b-4bc3-4df7-8a09-765794883524
* ConfigRouting should get driver handle by device path in all drivers ↵vanjeff2009-05-111-62/+21
| | | | | | database in system, not only in Hii Package list database. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8284 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiDataBase driver to use GetBestLanguage() for matching RFC 4646 ↵rsun32009-05-083-61/+20
| | | | | | languages. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8262 6f19259b-4bc3-4df7-8a09-765794883524
* correct the minor format.lgao42009-05-061-2/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8244 6f19259b-4bc3-4df7-8a09-765794883524
* Remove unused IfrSupportLiblgao42009-04-122-2/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8064 6f19259b-4bc3-4df7-8a09-765794883524
* Add ASSERT() check for StringInfo pointer.qhuang82009-04-101-0/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8055 6f19259b-4bc3-4df7-8a09-765794883524
* Fix error when replace HexStringToBuflgao42009-04-091-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8047 6f19259b-4bc3-4df7-8a09-765794883524
* Replace BufToHexString by UnicodeValueToStringlgao42009-04-087-134/+162
| | | | | | Replace HexStringToBuf by StrHexToUint64 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8034 6f19259b-4bc3-4df7-8a09-765794883524
* 1. retired console control protocol.vanjeff2009-04-011-2/+1
| | | | | | 2. removed NULL console device from consplitter module. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7995 6f19259b-4bc3-4df7-8a09-765794883524
* Add ASSERT() check for StringInfoIn structure.qhuang82009-03-271-1/+5
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7968 6f19259b-4bc3-4df7-8a09-765794883524
* Apply GetBestLanguage() for the implementation of HiiStringIdToImage() API. qhuang82009-03-253-99/+94
| | | | | | E.g. L"PlatformLang" variable is "en" and registered string supports "en-US" git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7954 6f19259b-4bc3-4df7-8a09-765794883524
* Fix a potential bug that GetLanguages() API may return incorrect languages ↵qhuang82009-03-251-1/+1
| | | | | | | | in a string package when the *LanguageSize == OutputSize. This issue was hidden since UefiHiiLib API HiiLibGetSupportedLanguages() allocates large enough (4K) buffer to get the supported languages. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7953 6f19259b-4bc3-4df7-8a09-765794883524
* Remove Feature PCD PcdSupportFullConfigRoutingProtocol as EDK II sample ↵qwang122009-03-162-38/+1
| | | | | | implementation is UEFI compliant system which always produces gEfiHiiConfigRoutingProtocolGuid. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7892 6f19259b-4bc3-4df7-8a09-765794883524
* remove console control protocol consuming in DrawImage(), caller should make ↵vanjeff2009-02-232-12/+3
| | | | | | sure current mode is graphics mode. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7568 6f19259b-4bc3-4df7-8a09-765794883524
* Enhanced status return check.vanjeff2009-02-121-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7508 6f19259b-4bc3-4df7-8a09-765794883524
* Correct typo in comments, clean IfrSupportLib.hlgao42009-02-101-0/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7494 6f19259b-4bc3-4df7-8a09-765794883524
* 1) Clean up the INF and add in comment to describe the surface area of modulesqwang122009-02-031-9/+9
| | | | | | 2) Minor comment fix. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7413 6f19259b-4bc3-4df7-8a09-765794883524
* Add in ASSERT to check out-of-bound and possible dereference of NULL pointers.qwang122009-02-021-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7391 6f19259b-4bc3-4df7-8a09-765794883524
* K8: qwang122009-01-203-4/+6
| | | | | | | 1) Fix the bug the assert conditions. || should be &&. 2) Add in code path and check-for-null-pointer to do error handling. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7308 6f19259b-4bc3-4df7-8a09-765794883524
* Source level security checkedjji42009-01-192-16/+17
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7303 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up to update the reference of the these macros:qhuang82008-12-161-14/+14
| | | | | | | | | | | | | EFI_SIGNATURE_16 -> SIGNATURE_16 EFI_SIGNATURE_32 -> SIGNATURE_32 EFI_SIGNATURE_64 -> SIGNATURE_64 EFI_FIELD_OFFSET -> OFFSET_OF EFI_MAX_BIT -> MAX_BIT EFI_MAX_ADDRESS -> MAX_ADDRESS These macros are not defined in UEFI spec. It makes more sense to use the equivalent macros in Base.h to avoid alias. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7056 6f19259b-4bc3-4df7-8a09-765794883524
* 1) Update file header.qwang122008-12-111-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6990 6f19259b-4bc3-4df7-8a09-765794883524
* 1) Update file header.qwang122008-12-113-25/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6989 6f19259b-4bc3-4df7-8a09-765794883524