Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ProgramMax
/
cppcheck
Public
forked from
cppcheck-opensource/cppcheck
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cppcheck
lib
checkmemoryleak.cpp
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 25, 2016
Running astyle; Improved testing of std::find; std.cfg: Added support for istream::read and ifstream::read.
orbitcowboy
committed
87409ea
View commit details
Copy full SHA for 87409ea
View code at this point
Browse repository at this point
Commits on Aug 24, 2016
CWE mapping of invalidLengthModifierError, leakUnsafeArgAlloc, nullPointerDefaultArg, nullPointerRedundantCheck, raceAfterInterlockedDecrement.
boos
committed
01ee9ee
View commit details
Copy full SHA for 01ee9ee
View code at this point
Browse repository at this point
Commits on May 26, 2016
Fixed #7026 (Cppcheck does not recognizes the use of a variabile inside lambda function)
danmar
committed
54be403
View commit details
Copy full SHA for 54be403
View code at this point
Browse repository at this point
Fixed #3989 (false positive: memory leak (inline function))
danmar
committed
3874186
View commit details
Copy full SHA for 3874186
View code at this point
Browse repository at this point
Commits on May 22, 2016
Added new attribute "arg" to <alloc> and <dealloc> to specify the argument that is allocated/deallocated.
Show description for 64d2fd2
PKEuS
committed
64d2fd2
View commit details
Copy full SHA for 64d2fd2
View code at this point
Browse repository at this point
Commits on May 14, 2016
Fixed #7244 (False memory leak when POD is allocated with value initialization and pushed onto container)
danmar
committed
5a1bea2
View commit details
Copy full SHA for 5a1bea2
View code at this point
Browse repository at this point
Commits on Apr 12, 2016
CWE mapping of unsafeClassCanLeak, zerodivcond, invalidPointerCast, redundantCopy, redundantAssignment, comparisonFunctionIsAlwaysTrueOrFalse, checkCastIntToCharAndBack, cstyleCast, passedByValue, …
Show description for e89cd1b
boos
authored and
PKEuS
committed
e89cd1b
View commit details
Copy full SHA for e89cd1b
View code at this point
Browse repository at this point
Commits on Feb 27, 2016
Run astyle + minor refactoring
amai2012
committed
0533d7b
View commit details
Copy full SHA for 0533d7b
View code at this point
Browse repository at this point
Commits on Jan 31, 2016
Fixed false positive in CheckMemoryLeakStructMember when returning a member that has been allocated (#7302).
PKEuS
committed
4d01af3
View commit details
Copy full SHA for 4d01af3
View code at this point
Browse repository at this point
Commits on Jan 25, 2016
CWE: refactoring. use constants instead of magic numbers.
danmar
committed
5e10e68
View commit details
Copy full SHA for 5e10e68
View code at this point
Browse repository at this point
Refactoring CheckMemoryLeakNoVar::checkForUnusedReturnValue(). use continue
danmar
committed
0fb9ab7
View commit details
Copy full SHA for 0fb9ab7
View code at this point
Browse repository at this point
Commits on Jan 24, 2016
Mapped 26 errors to their CWEs ID.
boos
committed
5ce69da
View commit details
Copy full SHA for 5ce69da
View code at this point
Browse repository at this point
Commits on Jan 20, 2016
CheckMemoryLeak: Fix FP when overloaded new is used
danmar
committed
642cc57
View commit details
Copy full SHA for 642cc57
View code at this point
Browse repository at this point
Commits on Jan 16, 2016
Removed redundant null pointer check
danmar
committed
d39097f
View commit details
Copy full SHA for d39097f
View code at this point
Browse repository at this point
Commits on Jan 5, 2016
Added mapped CWE IDs to reportErr function calls
boos
authored and
danmar
committed
5c1965a
View commit details
Copy full SHA for 5c1965a
View code at this point
Browse repository at this point
Commits on Jan 3, 2016
#7255 segmentation fault (invalid code) in CheckMemoryLeakInFunction::getcode
amai2012
committed
d6fd470
View commit details
Copy full SHA for d6fd470
View code at this point
Browse repository at this point
Settings: Remove '_' prefix for public member variables
danmar
committed
79e663d
View commit details
Copy full SHA for 79e663d
View code at this point
Browse repository at this point
Commits on Jan 1, 2016
Update copyright year to 2007-2016.
lanurmi
committed
996c924
View commit details
Copy full SHA for 996c924
View code at this point
Browse repository at this point
Commits on Dec 24, 2015
Refactorization: Removed redundant %any% patterns.
PKEuS
committed
940d569
View commit details
Copy full SHA for 940d569
View code at this point
Browse repository at this point
Commits on Dec 5, 2015
#7182 crash: CheckMemoryLeak::functionReturnType()
amai2012
committed
86c9387
View commit details
Copy full SHA for 86c9387
View code at this point
Browse repository at this point
#7183 CheckClass::checkMemset() uint overflow. Plus some minor refactoring
amai2012
committed
e69377d
View commit details
Copy full SHA for e69377d
View code at this point
Browse repository at this point
Commits on Nov 29, 2015
Small refactorizations:
Show description for e8522c7
PKEuS
committed
e8522c7
View commit details
Copy full SHA for e8522c7
View code at this point
Browse repository at this point
Commits on Nov 27, 2015
Fixed crash in CheckMemoryLeak::functionReturnType() for unary operator:: (#7172)
PKEuS
committed
3b41606
View commit details
Copy full SHA for 3b41606
View code at this point
Browse repository at this point
CheckMemoryLeak: Correctly detect new char[...]() as array allocation (#7164)
PKEuS
committed
0ba3d25
View commit details
Copy full SHA for 0ba3d25
View code at this point
Browse repository at this point
Commits on Nov 19, 2015
Refactorizations in checkmemoryleak.cpp:
Show description for 2e7c5d3
PKEuS
committed
2e7c5d3
View commit details
Copy full SHA for 2e7c5d3
View code at this point
Browse repository at this point
checkmemoryleak.cpp: Refactorized CheckMemoryLeakNoVar::check() and replaced a redundant whitelist by CheckMemoryLeakInFunction::test_white_list()
PKEuS
committed
0d25a43
View commit details
Copy full SHA for 0d25a43
View code at this point
Browse repository at this point
fix internal warning:
Show description for 8faf8e2
matthiaskrgr
committed
8faf8e2
View commit details
Copy full SHA for 8faf8e2
View code at this point
Browse repository at this point
Fixed false negatives in CheckMemoryLeakStructMember::checkStructVariable():
Show description for ab171fc
PKEuS
committed
ab171fc
View commit details
Copy full SHA for ab171fc
View code at this point
Browse repository at this point
Refactorization: Support Types that consist of more than a single token in CheckMemoryLeakNoVar::checkForUnsafeArgAlloc
Show description for db6174b
PKEuS
committed
db6174b
View commit details
Copy full SHA for db6174b
View code at this point
Browse repository at this point
Commits on Nov 18, 2015
Refactorization:
Show description for 87d3ed9
PKEuS
committed
87d3ed9
View commit details
Copy full SHA for 87d3ed9
View code at this point
Browse repository at this point
Fixed broken AST for simple expressions with delete operator.
Show description for 1566b72
PKEuS
committed
1566b72
View commit details
Copy full SHA for 1566b72
View code at this point
Browse repository at this point
Refactorization: Removed std::string overload of CheckMemoryLeak::getDeallocationType(), improved varid overload to handle member variables
PKEuS
committed
4957e48
View commit details
Copy full SHA for 4957e48
View code at this point
Browse repository at this point
Improved detection of new operator in checkmemoryleak.cpp, fixed TODO unit test
PKEuS
committed
6ee4cf8
View commit details
Copy full SHA for 6ee4cf8
View code at this point
Browse repository at this point
Changed Copyrights. Removed my name.
danmar
committed
0f9d90d
View commit details
Copy full SHA for 0f9d90d
View code at this point
Browse repository at this point
Commits on Nov 10, 2015
Apply same heuristics in CheckMemoryLeakNoVar::checkForUnusedReturnValue() as in CheckOther::checkIgnoredReturnValue(): Ensure that a defined function has non-void return value. (#6693)
Show description for 6336372
PKEuS
committed
6336372
View commit details
Copy full SHA for 6336372
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.