Skip to content

Commit

Permalink
ofp-util: Avoid use-after-free error in ofputil_append_meter_config().
Browse files Browse the repository at this point in the history
Reported-by: weizj <[email protected]>
Reported-at: openvswitch#97
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
blp committed Jan 5, 2016
1 parent 9d4e54c commit 32756a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ likunyun [email protected]
meishengxin [email protected]
neeraj mehta [email protected]
rahim entezari [email protected]
weizj [email protected]
俊 赵 [email protected]
冯全树(Crab) [email protected]
胡靖飞 [email protected]
Expand Down
1 change: 1 addition & 0 deletions lib/ofp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,7 @@ ofputil_append_meter_config(struct ovs_list *replies,

ofputil_put_bands(mc->n_bands, mc->bands, msg);

reply = ofpbuf_at_assert(msg, start_ofs, sizeof *reply);
reply->length = htons(msg->size - start_ofs);

ofpmp_postappend(replies, start_ofs);
Expand Down

0 comments on commit 32756a5

Please sign in to comment.