diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-18 11:33:26 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-18 11:33:26 +0000 |
commit | fbe12b79aef4c2706e90078cc75b94dcf7926ba8 (patch) | |
tree | 3e008e770ede3205f66e38ceb9e3140f749712fd /MdeModulePkg/Universal/StatusCodeHandler | |
parent | 6517edbe5156bdf40f4bbd46af001d10ef81c8ed (diff) | |
download | edk2-platforms-fbe12b79aef4c2706e90078cc75b94dcf7926ba8.tar.xz |
Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10955 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/StatusCodeHandler')
-rw-r--r-- | MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c | 1 | ||||
-rw-r--r-- | MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c index 6267725751..4a5d65d25e 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c @@ -90,6 +90,7 @@ SerialStatusCodeReportWorker ( Value,
Instance
);
+ ASSERT (CharCount > 0);
if (CallerId != NULL) {
CharCount += AsciiSPrint (
diff --git a/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c b/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c index 27a243be06..868ffad7a3 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c @@ -90,6 +90,7 @@ SerialStatusCodeReportWorker ( Value,
Instance
);
+ ASSERT (CharCount > 0);
if (CallerId != NULL) {
CharCount += AsciiSPrint (
|