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

Alin Serdean aserdean at cloudbasesolutions.com
Wed Sep 21 01:26:58 UTC 2016


Please disregard this patch I'll post a new series.

> -----Original Message-----
> From: Alin Serdean
> Sent: Wednesday, September 21, 2016 12:08 AM
> To: dev at openvswitch.org
> Cc: Alin Serdean <aserdean at cloudbasesolutions.com>
> Subject: [PATCH 4/5] datapath-windows: read overrun in geneve.c
> 
> Fix possible read overrun.
> 
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
> ---
>  datapath-windows/ovsext/Geneve.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/datapath-windows/ovsext/Geneve.c b/datapath-
> windows/ovsext/Geneve.c
> index 5712e4d..65e547f 100644
> --- a/datapath-windows/ovsext/Geneve.c
> +++ b/datapath-windows/ovsext/Geneve.c
> @@ -173,7 +173,7 @@ NDIS_STATUS
> OvsEncapGeneve(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



More information about the dev mailing list