Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor refactorings to stop UBSAN from complaining #2551

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

kevinbackhouse
Copy link
Collaborator

Fixes: #2539

UBSAN is complaining because there's an integer overflow in a pointer addition. In both cases, it's harmless because the pointer is never dereferenced. I've refactored the code to stop the overflow from happening.

@kevinbackhouse kevinbackhouse changed the title Minor refactorings to stop UBSAN from complaining. Minor refactorings to stop UBSAN from complaining Mar 18, 2023
@ghost
Copy link

ghost commented Mar 18, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@codecov
Copy link

codecov bot commented Mar 18, 2023

Codecov Report

Merging #2551 (5d11208) into main (66e904e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2551   +/-   ##
=======================================
  Coverage   63.97%   63.97%           
=======================================
  Files         103      103           
  Lines       22467    22467           
  Branches    10858    10858           
=======================================
  Hits        14374    14374           
  Misses       5872     5872           
  Partials     2221     2221           
Impacted Files Coverage Δ
src/tiffcomposite_int.cpp 77.15% <100.00%> (ø)
src/tiffvisitor_int.cpp 80.74% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@neheb neheb merged commit 4831c65 into Exiv2:main Mar 18, 2023
@kevinbackhouse kevinbackhouse deleted the fix-issue-2539 branch March 18, 2023 19:43
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.

x86 Tests Failing
2 participants