8000 fix potential overflow by casting one operand to lager integer type by nichideropa · Pull Request #555 · oceanbase/miniob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix potential overflow by casting one operand to lager integer type #555

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

Merged
merged 2 commits into from
May 19, 2025

Conversation

nichideropa
Copy link
Contributor

What problem were solved in this pull request?

Issue Number: close #xxx
#534

Problem:
Fix code scanning alert - Multiplication result converted to larger type #534

What is changed and how it works?

Basically just casted one of the operand to 'long'. I wasn't sure if it was meant to be an unsigned type for example size_t and that's why I stuck to long.

Other information

@CLAassistant
Copy link
CLAassistant commented May 11, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
codecov bot commented May 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.18%. Comparing base (3ed015c) to head (2abd761).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #555   +/-   ##
=======================================
  Coverage   55.18%   55.18%           
=======================================
  Files         178      178           
  Lines       10338    10338           
=======================================
  Hits         5705     5705           
  Misses       4633     4633           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nichideropa
Copy link
Contributor Author

Changed it.

Copy link
Member
@nautaa nautaa left a comment

Choose a reason for hiding this comment

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

LGTM

@nautaa nautaa merged commit 0a0003e into oceanbase:main May 19, 2025
15 checks passed
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
0