Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db-ctl-base: Fix uninitialized datum fields while checking conditions.
Statically allocated datum objects should be properly initialized with a special function instead of doing that manually. WARNING: MemorySanitizer: use-of-uninitialized-value 0 0x58789c in ovsdb_datum_compare_3way lib/ovsdb-data.c:1846:19 1 0x52bbab in evaluate_relop lib/db-ctl-base.c:731:16 2 0x52b042 in check_condition lib/db-ctl-base.c:844:22 3 0x522fea in cmd_wait_until lib/db-ctl-base.c:1935:22 4 0x4c704b in do_vsctl utilities/ovs-vsctl.c:3001:13 5 0x4c4429 in main utilities/ovs-vsctl.c:204:17 6 0x7f5ad5 in __libc_start_call_main 7 0x7f5ad5 in __libc_start_main@GLIBC_2.2.5 8 0x432b04 in _start (utilities/ovs-vsctl+0x432b04) In this case the reference counter ended up not initialized. Fixes: 485ac63 ("ovsdb: Add lazy-copy support for ovsdb_datum objects.") Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
- Loading branch information