diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-07 15:38:52 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-07 15:38:52 +0000 |
commit | 533f039eb0bd2a1d5e7f11debb1379b048630021 (patch) | |
tree | 6d247323469c5f91d3e7edf21fb2e26c03f5d793 /MdePkg/Library/BasePrintLib | |
parent | 8a43e8dd550a3e92238b3c22bb6ea67d41097e86 (diff) | |
download | edk2-platforms-533f039eb0bd2a1d5e7f11debb1379b048630021.tar.xz |
BaseMemoryLib:
Correct wrong ASSERT()s on SetMem16(), SetMem32(), SetMem64()
HobLib:
Add Missing ASSERT()s for BuildGuidHobData() since CopyMem() now allow zero source buffer with length > 0.
BasePrintLib
Add ASSERT()s to check NULL buffer and NULL format.
PostCodeLib
Add 3 instances of PostCodeLib and introduce new Pcd for post code property mask.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@438 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePrintLib')
-rw-r--r-- | MdePkg/Library/BasePrintLib/BasePrintLib.msa | 1 | ||||
-rw-r--r-- | MdePkg/Library/BasePrintLib/PrintLib.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/BasePrintLib/BasePrintLib.msa b/MdePkg/Library/BasePrintLib/BasePrintLib.msa index ef0159a179..552a08609c 100644 --- a/MdePkg/Library/BasePrintLib/BasePrintLib.msa +++ b/MdePkg/Library/BasePrintLib/BasePrintLib.msa @@ -34,6 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <LibraryClassDefinitions>
<LibraryClass Usage="ALWAYS_PRODUCED">PrintLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">BaseLib</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>
</LibraryClassDefinitions>
<SourceFiles>
<Filename>PrintLib.c</Filename>
diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c index 84dceb6e85..24e0175545 100644 --- a/MdePkg/Library/BasePrintLib/PrintLib.c +++ b/MdePkg/Library/BasePrintLib/PrintLib.c @@ -110,6 +110,9 @@ BasePrintLibVSPrint ( UINTN Radix;
RETURN_STATUS Status;
+ ASSERT (Buffer != NULL);
+ ASSERT (Format != NULL);
+
OriginalBuffer = Buffer;
if ((Flags & OUTPUT_UNICODE) != 0) {
|