mirror of
https://github.com/openvswitch/ovs
synced 2025-09-05 16:55:42 +00:00
ofp-util: Avoid use-after-free error in ofputil_append_meter_config().
Reported-by: weizj <334965317@qq.com> Reported-at: https://github.com/openvswitch/ovs/pull/97 Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user