[ovs-dev] [PATCH 3/5] datapath-windows: read overrun in gre.c
Alin Serdean
aserdean at cloudbasesolutions.com
Tue Sep 20 21:08:25 UTC 2016
Fix possible read overrun.
Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
datapath-windows/ovsext/Gre.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datapath-windows/ovsext/Gre.c b/datapath-windows/ovsext/Gre.c
index 1976b08..a0c953b 100644
--- a/datapath-windows/ovsext/Gre.c
+++ b/datapath-windows/ovsext/Gre.c
@@ -218,7 +218,7 @@ OvsDoEncapGre(POVS_VPORT_ENTRY vport,
ASSERT(((PCHAR)&fwdInfo->dstMacAddr + sizeof fwdInfo->dstMacAddr) ==
(PCHAR)&fwdInfo->srcMacAddr);
NdisMoveMemory(ethHdr->Destination, fwdInfo->dstMacAddr,
- sizeof ethHdr->Destination + sizeof ethHdr->Source);
+ sizeof ethHdr->Destination);
ethHdr->Type = htons(ETH_TYPE_IPV4);
#if DBG
counterHeadRoom -= sizeof *ethHdr;
--
2.9.2.windows.1
More information about the dev
mailing list