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

coverity fixes #2673

Merged
merged 3 commits into from
Jul 2, 2023
Merged

coverity fixes #2673

merged 3 commits into from
Jul 2, 2023

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Jul 1, 2023

No description provided.

neheb added 3 commits July 1, 2023 05:26
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
@ghost
Copy link

ghost commented Jul 1, 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 Jul 1, 2023

Codecov Report

Merging #2673 (0806c90) into main (9215f74) will decrease coverage by 0.03%.
The diff coverage is 10.00%.

@@            Coverage Diff             @@
##             main    #2673      +/-   ##
==========================================
- Coverage   63.92%   63.89%   -0.03%     
==========================================
  Files         103      103              
  Lines       22305    22313       +8     
  Branches    10795    10799       +4     
==========================================
  Hits        14258    14258              
- Misses       5826     5830       +4     
- Partials     2221     2225       +4     
Impacted Files Coverage Δ
src/pgfimage.cpp 42.76% <0.00%> (ø)
src/tiffcomposite_int.cpp 76.54% <0.00%> (-0.33%) ⬇️
src/tiffvisitor_int.cpp 80.53% <0.00%> (-0.19%) ⬇️
src/quicktimevideo.cpp 60.00% <33.33%> (-0.15%) ⬇️

Copy link
Collaborator

@kmilos kmilos left a comment

Choose a reason for hiding this comment

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

LGTM

@neheb neheb merged commit d18a218 into Exiv2:main Jul 2, 2023
@neheb neheb deleted the covvvb branch July 2, 2023 14:35
if (currentStream_ == Video)
if (currentStream_ == Video) {
if (timeOfFrames == 0)
timeOfFrames = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@neheb: Did coverity complain about a possible divide-by-zero? I'm not convinced it's a bug. We're using floating point arithmetic here, so it wouldn't cause a crash - it would just compute Inf or NaN.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah that's it. I'm not convinced it can be 0 based on the above code.

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.

3 participants