René's URL Explorer Experiment


Title: fix signed overflow in calculate() and MathLib constant folding by Nussu06 · Pull Request #9030 · cppcheck-opensource/cppcheck · GitHub

Open Graph Title: fix signed overflow in calculate() and MathLib constant folding by Nussu06 · Pull Request #9030 · cppcheck-opensource/cppcheck

X Title: fix signed overflow in calculate() and MathLib constant folding by Nussu06 · Pull Request #9030 · cppcheck-opensource/cppcheck

Description: static analysis of C/C++ code. Contribute to cppcheck-opensource/cppcheck development by creating an account on GitHub.

Open Graph Description: calculate() in lib/calculate.h, MathLib::add/subtract/multiply/mod and valueFlowEnumValue fold integer constants from the checked code in MathLib::bigint with plain signed arithmetic, so code like ...

X Description: calculate() in lib/calculate.h, MathLib::add/subtract/multiply/mod and valueFlowEnumValue fold integer constants from the checked code in MathLib::bigint with plain signed arithmetic, so code like ...

Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/9030

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:04e13fe6-23b8-ffdf-c51e-f145cf4b3bfe
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-id8B88:A0DDB:28E287:392F01:6AFC4DF4
html-safe-noncef16fbdb4c0e5445c1d84b5a1a62604566d72fdb96cd32058a653bcc40505d1ba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Qjg4OkEwRERCOjI4RTI4NzozOTJGMDE6NkFGQzRERjQiLCJ2aXNpdG9yX2lkIjoiNTg3OTQ1NDY2MjU2MTM4NTk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac67f1773624bd2a5d3b497eacf270d61fb122741f1fc94411cc44480d33a88aad
hovercard-subject-tagpull_request:5313725109
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/9030/checks
twitter:imagehttps://opengraph.githubassets.com/4cf1533fcfbeec8e3b25b47ed0444701a1db3a2c98be95ef106faea400e82a21/cppcheck-opensource/cppcheck/pull/9030
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4cf1533fcfbeec8e3b25b47ed0444701a1db3a2c98be95ef106faea400e82a21/cppcheck-opensource/cppcheck/pull/9030
og:image:altcalculate() in lib/calculate.h, MathLib::add/subtract/multiply/mod and valueFlowEnumValue fold integer constants from the checked code in MathLib::bigint with plain signed arithmetic, so code like ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNussu06
hostnamegithub.com
expected-hostnamegithub.com
Noneb63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6
turbo-cache-controlno-cache
go-importgithub.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id143131
octolytics-dimension-repository_nwocppcheck-opensource/cppcheck
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143131
octolytics-dimension-repository_network_root_nwocppcheck-opensource/cppcheck
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0243355b0352c83733a042e0dfb3d75149b51261
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9030%2Fchecks
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9030%2Fchecks
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=cppcheck-opensource%2Fcppcheck
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks
cppcheck-opensourcehttps://github.com/cppcheck-opensource
cppcheckhttps://github.com/cppcheck-opensource/cppcheck
Codehttps://github.com/cppcheck-opensource/cppcheck
Pull requests222 (222)https://github.com/cppcheck-opensource/cppcheck/pulls
Actionshttps://github.com/cppcheck-opensource/cppcheck/actions
Security and qualityhttps://github.com/cppcheck-opensource/cppcheck/security
Insightshttps://github.com/cppcheck-opensource/cppcheck/pulse
https://github.com/cppcheck-opensource/cppcheck
Nussu06https://github.com/Nussu06
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
Nussu06:constant-folding-signed-overflowhttps://github.com/Nussu06/cppcheck/tree/constant-folding-signed-overflow
Conversationhttps://github.com/cppcheck-opensource/cppcheck/pull/9030
Commits2 (2)https://github.com/cppcheck-opensource/cppcheck/pull/9030/commits
Checkshttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks
Files changedhttps://github.com/cppcheck-opensource/cppcheck/pull/9030/files
fix signed overflow in calculate() and MathLib constant foldinghttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks#top
Nussu06https://github.com/Nussu06
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
Nussu06:constant-folding-signed-overflowhttps://github.com/Nussu06/cppcheck/tree/constant-folding-signed-overflow
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/9030/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9030%2Fchecks
CI-cygwin on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206637
build_cygwin (windows-2025, x86_64) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206637/job/132879249155?pr=9030
Coverage on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206639
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206639/job/132879249197?pr=9030
CI-unixish on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647
build_cmake_tinyxml2 (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249557?pr=9030
build_cmake_tinyxml2 (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249331?pr=9030
build_cmake (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249796?pr=9030
build_cmake (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249552?pr=9030
build_cmake_cxxstd (ubuntu-22.04, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249781?pr=9030
build_cmake_cxxstd (ubuntu-22.04, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249639?pr=9030
build_cmake_cxxstd (ubuntu-22.04, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249670?pr=9030
build_cmake_cxxstd (macos-15, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249615?pr=9030
build_cmake_cxxstd (macos-15, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249616?pr=9030
build_uchar (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249571?pr=9030
build_uchar (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249570?pr=9030
build_mathlib (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249551?pr=9030
build_mathlib (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249648?pr=9030
check_nonneg (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249530?pr=9030
check_nonneg (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249602?pr=9030
build_cmake_boost (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249744?pr=9030
build_cmake_minimum https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249624?pr=9030
build (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249697?pr=9030
build (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132879249791?pr=9030
selfcheck https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206647/job/132897994984?pr=9030
gcc-versions on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206652
build (ghcr.io/cppcheck-opensource/gcc:5.4) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206652/job/132879249534?pr=9030
CIFuzz on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206664
Fuzzing https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206664/job/132879249444?pr=9030
format on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206685
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206685/job/132879249241?pr=9030
Build manual on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206689
convert_via_pandoc https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206689/job/132879249819?pr=9030
manpage https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206689/job/132879249435?pr=9030
CI-mingw on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206700
build_mingw (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206700/job/132879249895?pr=9030
sanitizers on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206743
build (asan, -DANALYZE_ADDRESS=On, true, process, false) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206743/job/132879249838?pr=9030
build (tsan, -DANALYZE_THREAD=On, false, thread, false, --executor=thread --error-exitcode=0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206743/job/132879249779?pr=9030
build (ubsan, -DANALYZE_UNDEFINED=On, true, process, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206743/job/132879249545?pr=9030
CI-windows on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825
build_qt (windows-2022, 6.10.0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199164341?pr=9030
build_qt (windows-2025, 6.10.0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199145569?pr=9030
build_cmake_cxxstd (windows-2022, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199137867?pr=9030
build_cmake_cxxstd (windows-2022, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199096492?pr=9030
build_cmake_cxxstd (windows-2022, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199157847?pr=9030
build_cmake_cxxstd (windows-2025, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199095407?pr=9030
build_cmake_cxxstd (windows-2025, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199151349?pr=9030
build_cmake_cxxstd (windows-2025, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199165955?pr=9030
build_cmake_minimum https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199091533?pr=9030
build (windows-2022, debug) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199152168?pr=9030
build (windows-2022, release) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199094750?pr=9030
build (windows-2025, debug) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199166541?pr=9030
build (windows-2025, release) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206825/job/133199155490?pr=9030
CI-unixish-docker on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764
build_cmake (ubuntu:24.04, true, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764/job/132879249972?pr=9030
build_cmake (ubuntu:25.10, true, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764/job/132879249991?pr=9030
build_cmake (alpine:3.23, false, false) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764/job/132879249970?pr=9030
build_make (ubuntu:24.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764/job/132879249874?pr=9030
build_make (ubuntu:25.10) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764/job/132879249664?pr=9030
build_make (alpine:3.23) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206764/job/132879250065?pr=9030
scriptcheck on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132879250221?pr=9030
dmake (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132879249938?pr=9030
dmake (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132879250188?pr=9030
dmake (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132879250202?pr=9030
scriptcheck (3.7) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327907?pr=9030
scriptcheck (3.8) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327853?pr=9030
scriptcheck (3.9) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327878?pr=9030
scriptcheck (3.10) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327877?pr=9030
scriptcheck (3.11) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327835?pr=9030
scriptcheck (3.12) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327918?pr=9030
scriptcheck (3.13) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327851?pr=9030
scriptcheck (3.14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206766/job/132884327941?pr=9030
selfcheck on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206784
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206784/job/132879249683?pr=9030
cppcheck-premium on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206805
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206805/job/132879249789?pr=9030
clang-tidy on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206824
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206824/job/132879250172?pr=9030
valgrind on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206844
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206844/job/132879250056?pr=9030
release-windows-mingw on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206869
build_mingw (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206869/job/132879250196?pr=9030
CodeQL on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206894
Analyze (cpp) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206894/job/132879250484?pr=9030
Analyze (python) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43736206894/job/132879250499?pr=9030
CodeQL https://github.com/cppcheck-opensource/cppcheck/pull/9030/checks?check_run_id=132886130408
Cppcheck Premium https://github.com/cppcheck-opensource/cppcheck/pull/9030/checks?check_run_id=132879673989
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.