diff options
author | Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> | 2019-08-05 20:03:06 +0300 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-09-24 11:03:44 +0200 |
commit | 863f195fa823c0c20d734dadfc5908c2aea34330 (patch) | |
tree | 78c27869d1e0d19c7a7ec9cdf5079848855873f9 /scsi | |
parent | 81b49004e0846b3526e26c786b6f64d4f1a0e38a (diff) |
make check-unit: use after free in test-opts-visitor
In the struct OptsVisitor, the 'repeated_opts' member points to a list
in the 'unprocessed_opts' hash table after the list has been destroyed.
A subsequent call to visit_type_int() references the deleted list.
It results in use-after-free issue reproduced by running the test case
under the Valgrind: valgrind tests/test-opts-visitor.
A new mode ListMode::LM_TRAVERSED is declared to mark the list
traversal completed.
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <1565024586-387112-1-git-send-email-andrey.shinkevich@virtuozzo.com>
Diffstat (limited to 'scsi')
0 files changed, 0 insertions, 0 deletions