On Sun, Jun 08, 2025 at 12:16:32PM +0800, Changliang Wu wrote:
> snprintf will automatically write \0 at the end of the string,
> and the last one byte will be out of bound.
> 
> create a new function ds_put_hex_with_delimiter,
> instead of chassisid_to string and format_hex_arg.
> 
> Found in sanitize test.
> 
> Signed-off-by: Changliang Wu <changliang...@smartx.com>
> ---
> 
> v2: create new function for hex string with delimiter.
> v3: move new function into ds lib.
> v4: fix patch format problems.

FTR, this has been accepted into main as:

- AUTHORS: Add Changliang Wu.
  https://github.com/openvswitch/ovs/commit/8a1a0ea7c0bd
- lldp: Fix out of bound write in chassisid_to_string.
  https://github.com/openvswitch/ovs/commit/aea4734299d8

Thanks to all.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to