]> sourceware.org Git - libabigail.git/commit
Bug 27598 - abidiff mishandles union member functions
authorDodji Seketeli <dodji@redhat.com>
Wed, 31 Mar 2021 12:56:52 +0000 (14:56 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 31 Mar 2021 16:21:28 +0000 (18:21 +0200)
commit2f8e1db0e7a163eda943001703d9fa0ecfad2806
treef97c10556d6144bb7f0d7d3cbf15ff5a6afd99dc
parent2eefd1727663285fe3544c41ec01dea32b2ec7dd
Bug 27598 - abidiff mishandles union member functions

abidiff segfaults when a union member function is involved in the
comparison.  This patch fixes that.

* src/abg-default-reporter.cc (default_reporter::report): Assume
the parent type of the method can be either a class or a union.
* tests/data/test-diff-filter/test-PR27598-report-0.txt: New
reference output for the test.
* tests/data/test-diff-filter/test-PR27598-v{0,1}.cc: New source
code for the input binaries below.
* tests/data/test-diff-filter/test-PR27598-v{0,1}.o: New input
test binaries.
* tests/data/Makefile.am: Add the new test material to source
distribution.
* tests/test-diff-filter.cc (in_out_specs): Add the test inputs
above to this test harness.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-default-reporter.cc
tests/data/Makefile.am
tests/data/test-diff-filter/test-PR27598-report-0.txt [new file with mode: 0644]
tests/data/test-diff-filter/test-PR27598-v0.cc [new file with mode: 0644]
tests/data/test-diff-filter/test-PR27598-v0.o [new file with mode: 0644]
tests/data/test-diff-filter/test-PR27598-v1.cc [new file with mode: 0644]
tests/data/test-diff-filter/test-PR27598-v1.o [new file with mode: 0644]
tests/test-diff-filter.cc
This page took 0.057747 seconds and 5 git commands to generate.