-
Notifications
You must be signed in to change notification settings - Fork 282
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: remove dead code #2525
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2525 +/- ##
==========================================
+ Coverage 64.65% 64.67% +0.02%
==========================================
Files 103 103
Lines 22232 22225 -7
Branches 10858 10859 +1
==========================================
Hits 14373 14373
+ Misses 5618 5614 -4
+ Partials 2241 2238 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Pull request has been modified.
I'm unsure about coverity: add move operations Look sane? |
CID 1521171: Missing move assignment operator Signed-off-by: Rosen Penev <[email protected]>
if (newlength > std::numeric_limits<size_t>::max()) { | ||
return {}; // Integer overflow. | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this overflow check doesn't work. It needs to happen before the calculation of newlength
! But this whole block of code could probably be replaced with strtoull
or something similar.
18093c6
to
ce86e0c
Compare
same as getULongLong Signed-off-by: Rosen Penev <[email protected]>
Found with: CID 1521533 Unsigned compared against 0 (NO_EFFECT) Signed-off-by: Rosen Penev <[email protected]>
No description provided.