2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +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:
Ben Pfaff
2015-12-15 22:51:29 -08:00
parent 9d4e54c6ff
commit 32756a57d5
2 changed files with 2 additions and 0 deletions

View File

@@ -420,6 +420,7 @@ likunyun kunyunli@hotmail.com
meishengxin meishengxin@huawei.com
neeraj mehta mehtaneeraj07@gmail.com
rahim entezari rahim.entezari@gmail.com
weizj 34965317@qq.com
俊 赵 zhaojun12@outlook.com
冯全树(Crab) fqs888@126.com
胡靖飞 hujingfei914@msn.com

View File

@@ -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);