commit | f53e38317d581399eb67809d6b6b6c2c107db50c | [log] [tgz] |
---|---|---|
author | Andy Zhou <azhou@nicira.com> | Thu Jul 17 15:17:44 2014 -0700 |
committer | Pravin B Shelar <pshelar@nicira.com> | Thu Jul 24 09:37:20 2014 -0700 |
tree | 2c289fa62e00614a8267cecfac3a9c7703b3aef8 | |
parent | f6eec614d2252a99b861e288b6301599d2d58da4 [diff] |
openvswitch: Avoid memory corruption in queue_userspace_packet() In queue_userspace_packet(), the ovs_nla_put_flow return value is not checked. This is fine as long as key_attr_size() returns the correct value. In case it does not, the current code may corrupt buffer memory. Add a run time assertion catch this case to avoid silent failure. Reported-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Andy Zhou <azhou@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>