2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 18:07:40 +00:00
Ilya Maximets 0b21e23431 json: Fix deep copy of objects and arrays.
When reference counting for json objects was introduced the
old json_clone() function became json_deep_clone(), but it
still calls shallow json_clone() while cloning objects and
arrays not really producing a deep copy.

Fixing that by making other functions to perform a deep copy
as well.  There are no users for this functionality inside
OVS right now, but OVS exports this functionality externally.

'ovstest test-json' extended to test both versions of a clone
on provided inputs.

Fixes: 9854d473adea ("json: Use reference counting in JSON objects")
Acked-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2022-10-11 21:10:46 +02:00
..
2022-09-27 01:17:56 +02:00
2022-07-15 20:14:24 +02:00
2020-07-27 14:50:17 -07:00
2022-05-17 23:10:41 +02:00
2021-01-05 18:55:45 +01:00
2022-07-19 19:55:19 +02:00
2022-09-27 01:17:56 +02:00
2022-07-19 19:55:19 +02:00
2022-07-19 19:55:19 +02:00
2022-07-19 19:55:19 +02:00
2022-07-19 19:55:19 +02:00
2022-07-15 20:14:24 +02:00
2019-12-20 12:23:06 -08:00
2021-06-22 21:29:57 +02:00
2022-05-30 23:34:39 +02:00
2021-06-22 21:29:57 +02:00
2017-08-03 14:48:33 -07:00
2019-12-20 12:23:06 -08:00
2022-08-15 13:07:13 +02:00
2022-08-15 13:07:13 +02:00