摘要
Some unsafe languages, like C and C++, let programmers maximize performance but are vulnerable to memory errors which can lead to program crashes and unpredictable behavior. Aiming to solve the problem, traditional memory allocating strategy is improved and a new probabilistic memory allocation technology is presented. By combining random memory allocating algorithm and virtual memory, memory errors are avoided in all probability during software executing. By replacing default memory allocator to manage allocation of heap memory, buffer overflows and dangling pointers are prevented. Experiments show it is better than Diehard of the following aspects: memory errors prevention, perform-ance in memory allocation set and ability of controlling working set. So probabilistic memory allocation is a valid memory errors prevention technology and it can tolerate memory errors and provide probabilistic memory safety effectively.
源语言 | 英语 |
---|---|
页(从-至) | 115-122 |
页数 | 8 |
期刊 | China Communications |
卷 | 9 |
期 | 4 |
出版状态 | 已出版 - 4月 2012 |