Hello, I am using a non-standard memory allocation function in C that is not being detected by SonarQube. Is there a way to configure SonarQube to detect our custom function and scan for memory leaks?
One work around I have tried is creating a wrapper with standard malloc/free name which does detect it.
I’m mostly interested if SonarQube has the capability to configure our custom functions. This was something we were able to do with Klockwork, a static code analyzer, where we could define custom functions.
Looks like maybe I can write a SonarQube Server plugin?
Thanks for reaching out and sharing your feedback.
Unfortunately, at this time, we don’t support ways to configure your analysis for this purpose. I’ve raised an internal ticket specifically for FreeRTOS, which I gather you were using.
We also have ideas to support custom allocating/deallocating functions using a system of function attributes, but ideally the user should not have to configure their analysis.