mirror of
https://github.com/openvswitch/ovs
synced 2025-09-05 00:35:33 +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:
1
AUTHORS
1
AUTHORS
@@ -420,6 +420,7 @@ likunyun kunyunli@hotmail.com
|
|||||||
meishengxin meishengxin@huawei.com
|
meishengxin meishengxin@huawei.com
|
||||||
neeraj mehta mehtaneeraj07@gmail.com
|
neeraj mehta mehtaneeraj07@gmail.com
|
||||||
rahim entezari rahim.entezari@gmail.com
|
rahim entezari rahim.entezari@gmail.com
|
||||||
|
weizj 34965317@qq.com
|
||||||
俊 赵 zhaojun12@outlook.com
|
俊 赵 zhaojun12@outlook.com
|
||||||
冯全树(Crab) fqs888@126.com
|
冯全树(Crab) fqs888@126.com
|
||||||
胡靖飞 hujingfei914@msn.com
|
胡靖飞 hujingfei914@msn.com
|
||||||
|
@@ -2039,6 +2039,7 @@ ofputil_append_meter_config(struct ovs_list *replies,
|
|||||||
|
|
||||||
ofputil_put_bands(mc->n_bands, mc->bands, msg);
|
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);
|
reply->length = htons(msg->size - start_ofs);
|
||||||
|
|
||||||
ofpmp_postappend(replies, start_ofs);
|
ofpmp_postappend(replies, start_ofs);
|
||||||
|
Reference in New Issue
Block a user