Abstract
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.
Original language | English |
---|---|
Pages (from-to) | 115-122 |
Number of pages | 8 |
Journal | China Communications |
Volume | 9 |
Issue number | 4 |
Publication status | Published - Apr 2012 |
Keywords
- Memory allocation
- Memory errors
- Probabilistic
- Software security