]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c
Refine code to make code run more safely.
[mirror_edk2.git] / MdeModulePkg / Universal / StatusCodeHandler / Smm / SerialStatusCodeWorker.c
index 27a243be064a988092ef55e8fb7e29cd4d8d2c68..868ffad7a3253f3276f3e1a9c181c5ab67addcbe 100644 (file)
@@ -90,6 +90,7 @@ SerialStatusCodeReportWorker (
                   Value, \r
                   Instance\r
                   );\r
+    ASSERT (CharCount > 0);\r
    \r
     if (CallerId != NULL) {\r
       CharCount += AsciiSPrint (\r