• Home
  • Search
  • Dynamically validating static memory leak warnings
  • Cite Icon27
  • https://doi.org/10.1145/2483760.2483778Copy DOI Icon

Dynamically validating static memory leak warnings

  • Jul 15, 2013
  • Mengchen Li +3 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

File Edit Options Buffers Tools TeX Help Memory leaks have significant impact on software availability, performance, and security. Static analysis has been widely used to find memory leaks in C/C++ programs. Although a static analysis is able to find all potential leaks in a program, it often reports a great number of false warnings. Manually validating these warnings is a daunting task, which significantly limits the practicality of the analysis. In this paper, we develop a novel dynamic technique that automatically validates and categorizes such warnings to unleash the power of static memory leak detectors. Our technique analyzes each warning that contains information regarding the leaking allocation site and the leaking path, generates test cases to cover the leaking path, and tracks objects created by the leaking allocation site. Eventually, warnings are classified into four categories: MUST-LEAK, LIKELY-NOT-LEAK, BLOAT, and MAY-LEAK. Warnings in MUST-LEAK are guaranteed by our analysis to be true leaks. Warnings in LIKELY-NOT-LEAK are highly likely to be false warnings. Although we cannot provide any formal guarantee that they are not leaks, we have high confidence that this is the case. Warnings in BLOAT are also not likely to be leaks but they should be fixed to improve performance. Using our approach, the developer's manual validation effort needs to be focused only on warnings in the category MAY-LEAK, which is often much smaller than the original set.

Similar Papers
  • Conference Article
  • Citations3

Practical experience and evaluation of continuous code static analysis with C++Test

  • Jul 15, 2013
  • Vincenzo Ciriello +2
  • Book Chapter

Runtime Analysis and Instrumentation for Securing Software

  • Jan 01, 2010
  • R Sekar
  • Dissertation

Data flow and heap analysis with application to privilege escalation vulnerability scanning and software theft detection

  • Jan 01, 2013
  • Ping-Fai Chan
  • PDF
  • Research Article
  • Citations67

Malware Classification Using Probability Scoring and Machine Learning

  • Jan 01, 2019
  • IEEE Access
  • Di Xue +4
  • Conference Article
  • Citations2

Towards Patching Memory Leak Bugs in Off-The-Shelf Software

  • Nov 01, 2014
  • Domenico Cotroneo +1
  • Conference Article
  • Citations4

Team up

  • Oct 12, 2014
  • Isabella Stilkerich +5
  • Book Chapter
  • Citations18

Eliminating Static Analysis False Positives Using Loop Abstraction and Bounded Model Checking

  • Jan 01, 2015
  • Bharti Chimdyalwar +4
  • Conference Article
  • Citations77

Integrating Static and Dynamic Analysis for Detecting Vulnerabilities

  • Jan 01, 2006
  • Ashish Aggarwal +1
  • Dissertation

Human-centric verification for software safety and security

  • Jun 26, 2020
  • Payas Awadhutkar
  • Conference Article
  • Citations1

Interactive Static Software Performance Analysis in the IDE

  • May 01, 2021
  • Aaron Beigelbeck +2
  • Research Article
  • Citations17

Symbolic pointer analysis for detecting memory leaks

  • Nov 01, 1999
  • ACM SIGPLAN Notices
  • Berhard Scholz +2
  • Research Article
  • Citations12

Some trade-offs in reducing the overhead of assertion run-time checks via static analysis

  • Dec 28, 2017
  • Science of Computer Programming
  • Nataliia Stulova +2
  • Research Article
  • Citations5

BLeak

  • Oct 22, 2020
  • Communications of the ACM
  • John Vilk +1
  • Research Article

ChiSA: Static Analysis for Lightweight Chisel Verification

  • Jan 08, 2026
  • Proceedings of the ACM on Programming Languages
  • Jiacai Cui +4
  • PDF
  • Research Article
  • Citations2

Secure Software Engineering: A Knowledge Modeling based Approach for Inferring Association between Source Code and Design Artifacts

  • Jan 01, 2020
  • International Journal of Advanced Computer Science and Applications
  • Chaman Wijesiriwardana +4
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.