Fix possible read overrun. Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> --- datapath-windows/ovsext/Stt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datapath-windows/ovsext/Stt.c b/datapath-windows/ovsext/Stt.c index ad322d2..cc0f912 100644 --- a/datapath-windows/ovsext/Stt.c +++ b/datapath-windows/ovsext/Stt.c @@ -281,7 +281,7 @@ OvsDoEncapStt(POVS_VPORT_ENTRY vport, ASSERT(((PCHAR)&fwdInfo->dstMacAddr + sizeof fwdInfo->dstMacAddr) == (PCHAR)&fwdInfo->srcMacAddr); NdisMoveMemory(outerEthHdr->Destination, fwdInfo->dstMacAddr, - sizeof outerEthHdr->Destination + sizeof outerEthHdr->Source); + sizeof outerEthHdr->Destination); outerEthHdr->Type = htons(ETH_TYPE_IPV4); /* L3 header */ -- 2.9.2.windows.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev