flow: Fix wild pointer dereference in flow_compose().
authorEthan Jackson <ethan@nicira.com>
Wed, 1 Aug 2012 20:01:01 +0000 (13:01 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 1 Aug 2012 20:33:48 +0000 (13:33 -0700)
commit9dbe4e889d2558b378dcae9ead57dc32ebc4a174
treed508437b0e98569a397fe862dab817221d6e7a92
parenta35ae81c6f79ab24e621a9d155538f5b88c5c2ac
flow: Fix wild pointer dereference in flow_compose().

The 'ip' variable in flow_compose() points to some memory allocated
in an ofpbuf.  The ofpbuf is modified without making the necessary
updates to the location of 'ip' causing a potential wild memory
access.

Found by inspection.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/flow.c