X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FComponentName.c;fp=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FComponentName.c;h=d8b818401888d54186bdffc99f73ce3ab8dc7fe3;hp=0b12359f14b60c99329579edbcffb3a33bc542a6;hb=44833d441beec53e8eaf5acb7d26c018f704247b;hpb=4d3d422dffd3b5b2dcbfc88728caf31d119fc7e2
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/ComponentName.c b/MdeModulePkg/Universal/Network/SnpDxe/ComponentName.c
index 0b12359f14..d8b8184018 100644
--- a/MdeModulePkg/Universal/Network/SnpDxe/ComponentName.c
+++ b/MdeModulePkg/Universal/Network/SnpDxe/ComponentName.c
@@ -1,7 +1,7 @@
/** @file
UEFI Component Name(2) protocol implementation for SnpDxe driver.
-Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed
and made available under the terms and conditions of the BSD License which
accompanies this distribution. The full text of the license may be found at
@@ -271,6 +271,7 @@ UpdateName (
Snp->Mode->CurrentAddress.Addr[Index]
);
}
+ ASSERT (OffSet > 0);
//
// Remove the last '-'
//