Upcoming Webinar!
The $2.41 trillion problem: unpacking the state of code reliability - Register Now!
Sonar Community
Ignore possible memory leak on realloc-style C functions
Rules and Languages
Report False-positive / False-negative...
cfamily
KaibutsuX
(KaibutsuX Mahou)
May 29, 2020, 12:53pm
4
C
6.9.0 (build 17076)
installed
no, see example “my_strcat”
Obviously I could wrap the call in a regex ignore block, but I don’t want to have to update thousands of lines of code to ignore this very commonly used function.
show post in topic
Related topics
Topic
Replies
Views
Activity
Sonarqube not reporting memory leaks issues
SonarQube Server / Community Build
sonarqube
,
cfamily
8
3478
February 24, 2021
FP Rule c:S3519 Out of bound memory access (accessed memory precedes memory block)
Report False-positive / False-negative...
sonarqube
,
cfamily
6
1003
January 13, 2023
Build Wrapper Configuration
SonarQube Server / Community Build
cfamily
5
1047
June 2, 2020
Detecting a Memory leak when using __attribute__((__cleanup__(<method>)))
Report False-positive / False-negative...
cfamily
3
264
February 15, 2024
"Memory copy function overflows destination buffer" - cpp:S3519 false positive?
SonarQube Server / Community Build
cfamily
4
1158
November 3, 2020