Dear Ling,
thank you for your interest in CPAchecker!
Am 18.07.23 um 05:18 schrieb lingqiu huang:
> I have a question regarding the detection of resource leaks errors and
> would appreciate any insights or guidance you can provide.
> BUT resource-leak,such as fopen/fclose is missing?
Yes, currently there are no out-of-the-box analyses available in
CPAchecker for verifying usage of such resources.
> I appreciate any guidance or suggestions on how to configure CPAChecker to
> detect resource leaks, when programs fail to release resources (such as
> memory, file handles, network connections, etc) after they are no longer
> needed. Are there specific properties or configurations that I should be
> aware of? Any insights or examples would be greatly appreciated.
Configuring CPAchecker wouldn't be enough for this.
One would have to either add a component in CPAchecker that keeps track
of such resources, or add a model with stubs for functions like
fopen/fclose to the program and encode the specification on how to use
these functions correctly in the stubs as reachability properties.
If you are interested in more details about how to implement this,
please let me know.
Greetings
Philipp
--
Philipp Wendler
Software and Computational Systems Lab
LMU Munich, Germany
Oettingenstr. 67 Raum F008 - Tel.: 089/2180-9181