Page MenuHomeFreeBSD

elftoolchain/addr2line: fix bugs found by coverity
Needs ReviewPublic

Authored by tig_freebsdfoundation.org on Dec 3 2020, 9:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 5:46 AM
Unknown Object (File)
Mar 13 2024, 5:29 PM
Unknown Object (File)
Feb 10 2024, 9:37 PM
Unknown Object (File)
Feb 3 2024, 8:15 AM
Unknown Object (File)
Dec 20 2023, 5:15 AM
Unknown Object (File)
Dec 12 2023, 6:23 PM
Unknown Object (File)
Jul 15 2023, 6:55 AM
Unknown Object (File)
Jun 30 2023, 4:48 AM
Subscribers
None

Details

Reviewers
emaste
Summary
  • set hipc to range->hipc in case of labels in collect_func()
  • deallocate die in case of error

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

contrib/elftoolchain/addr2line/addr2line.c
466

do we need to check for prev_die == NULL as we do at line 480?

tig_freebsdfoundation.org marked an inline comment as done.
tig_freebsdfoundation.org added inline comments.
contrib/elftoolchain/addr2line/addr2line.c
466

I think we do need to check for null in this case.