]> sourceware.org Git - libabigail.git/commit
writer: Do not crash on ABI corpora that have no associated path
authorDodji Seketeli <dodji@redhat.com>
Tue, 1 Oct 2024 10:37:43 +0000 (12:37 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 1 Oct 2024 15:04:12 +0000 (17:04 +0200)
commit1d6bc937a341370742a6fb2f2ed4f33962223dba
tree7953eb2c75b04b7002fe0fd79ae977cb3e6626e6
parent75e9536cb7fca1071efd74216f7bbe0bb5eb58ac
writer: Do not crash on ABI corpora that have no associated path

When write_context::record_corpus_as_emitted is invoked on an ABI
corpus that has no associated path, it crashes as that violates an
assert.

This patch loosens the assert, allowing ABI corpora with no associated
paths to be handled.

* src/abg-writer.cc (write_context::record_corpus_as_emitted):
Allow corpus without path.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-writer.cc
This page took 0.028619 seconds and 5 git commands to generate.