Memory Errors Prevention Technology for C/C++ Program Based on Probability

Jingfeng Xue,Changzhen Hu,Hongyu Ren,Rui Ma,Jian Li
DOI: https://doi.org/10.1109/nlpke.2011.6138200
2011-01-01
Abstract:Applications written in unsafe languages like C and C++ are vulnerable to memory errors such as buffer overflows and dangling pointers. Such errors can lead to program crashes, security vulnerabilities, and unpredictable behavior. Aiming at the problem, PSC, a new probabilistic safeguard C, is proposed in this paper. At the basis of Diehard, memory allocating strategy is improved in PSC. PSC can avoid memory errors in all probability during software executing by combing random memory allocating algorithm and virtual memory. Physical memory consumption is decreased by building hot object space working set and compressing non frequently used objects. Experiments show PSC is better than Diehard for memory errors prevention and physical memory consumption. So it is a valid memory errors prevention technology based on probability.
What problem does this paper attempt to address?