Skip to content

Handling unrecoverable ABRT signals in HDF5 Library#126

Merged
selimnairb merged 8 commits intoOpenNavigationSurface:masterfrom
anthonypapetti:issue-71222
Nov 8, 2024
Merged

Handling unrecoverable ABRT signals in HDF5 Library#126
selimnairb merged 8 commits intoOpenNavigationSurface:masterfrom
anthonypapetti:issue-71222

Conversation

@anthonypapetti
Copy link
Contributor

Fixes #118 #117 #84 #80

This commit adds error handling using std::signal to catch SIGABRT signals from the HDF5 Library in bag_dataset.cpp and exit the program gracefully.

@selimnairb
Copy link
Collaborator

@anthonypapetti Thanks for contributing this. The tests pass (except for the reporter, which I expect to fail since this is a PR; need to fix that to not run for PRs). Going to merge.

@selimnairb selimnairb merged commit 537fb5d into OpenNavigationSurface:master Nov 8, 2024
@anthonypapetti
Copy link
Contributor Author

@selimnairb Found afterwards that this also fixes #81 , will update if I find any more that is fixed by it.

@anthonypapetti
Copy link
Contributor Author

anthonypapetti commented Nov 15, 2024

@selimnairb Found that it fixes #103 #79 #93

@@ -859,6 +859,7 @@ bool decodeDataQualityInfo(
else if (schemaVersion == 2)
{
//gmd:DQ_DataQuality/gmd:scope/gmd:DQ_Scope/gmd:level

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better here to change BagDataQuality::scope to be a std::string instead of a char*? It would mean we wouldn't have to use delete[] manually everywhere, which might also help with bugs

@anthonypapetti
Copy link
Contributor Author

Found that it fixes #96 #100 #102 #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oss-fuzz: opennavsurf-bag:bag_read_fuzzer: Abrt in H5FD_set_eoa

3 participants