Re: [ovs-dev] [PATCH 1/5] datapath-windows: read overrun in vxlan.c

2016-09-20 Thread Alin Serdean
Please disregard this patch I'll post a new series.

> -Original Message-
> From: Alin Serdean
> Sent: Wednesday, September 21, 2016 12:07 AM
> To: [email protected]
> Cc: Alin Serdean 
> Subject: [PATCH 1/5] datapath-windows: read overrun in vxlan.c
> 
> Fix possible read overrun.
> 
> Signed-off-by: Alin Gabriel Serdean 
> ---
>  datapath-windows/ovsext/Vxlan.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/datapath-windows/ovsext/Vxlan.c b/datapath-
> windows/ovsext/Vxlan.c index ddd8d8e..8a681a9 100644
> --- a/datapath-windows/ovsext/Vxlan.c
> +++ b/datapath-windows/ovsext/Vxlan.c
> @@ -263,7 +263,7 @@ OvsDoEncapVxlan(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);
> 
>  /* IP header */
> --
> 2.9.2.windows.1
___
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] [PATCH 1/5] datapath-windows: read overrun in vxlan.c

2016-09-20 Thread Alin Serdean
Fix possible read overrun.

Signed-off-by: Alin Gabriel Serdean 
---
 datapath-windows/ovsext/Vxlan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datapath-windows/ovsext/Vxlan.c b/datapath-windows/ovsext/Vxlan.c
index ddd8d8e..8a681a9 100644
--- a/datapath-windows/ovsext/Vxlan.c
+++ b/datapath-windows/ovsext/Vxlan.c
@@ -263,7 +263,7 @@ OvsDoEncapVxlan(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);
 
 /* IP header */
-- 
2.9.2.windows.1
___
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev