Title :
Memory errors prevention technology for C/C++ program based on probability
Author :
Xue, Jingfeng ; Hu, Changzhen ; Ren, Hongyu ; Ma, Rui ; Li, Jian
Author_Institution :
Sch. of Software, Beijing Inst. of Technol., Beijing, China
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.
Keywords :
C++ language; probability; security of data; storage management; C program; C++ program; memory allocating strategy; memory consumption; memory error prevention technology; object space working set; probabilistic safeguard C; probability; random memory allocating algorithm; software execution; virtual memory; Educational institutions; Memory management; Radio spectrum management; C/C++ program; Memory errors; Probabilistic; Software security;
Conference_Titel :
Natural Language Processing andKnowledge Engineering (NLP-KE), 2011 7th International Conference on
Conference_Location :
Tokushima
Print_ISBN :
978-1-61284-729-0
DOI :
10.1109/NLPKE.2011.6138200