[ovs-dev] [valgrind 3/5] flow: Fix use-after-free in flow_compose().

Ben Pfaff blp at nicira.com
Thu Jun 5 18:38:41 UTC 2014


On Thu, Jun 05, 2014 at 10:34:38AM -0700, Andy Zhou wrote:
> On Wed, Jun 4, 2014 at 5:07 PM, Ben Pfaff <blp at nicira.com> wrote:
> > flow_compose_l4() can cause 'b' to be reallocated, thus the network header
> > pointer needs to be refreshed afterward.
> >
> > Found by valgrind in the IPv6 case.  I updated the IPv4 case too just in
> > case, and for consistency.
> >
> > Signed-off-by: Ben Pfaff <blp at nicira.com>
> 
> Acked-by: Andy Zhou <azhou at nicira.com>

Thanks for the reviews.  I'll apply this series to master in a minute,
and then backport as necessary.



More information about the dev mailing list