%0 Conference Proceedings %T SIMBER: Eliminating Redundant Memory Bound Checks via Statistical Inference %+ The George Washington University (GW) %A Xue, Hongfa %A Chen, Yurong %A Yao, Fan %A Li, Yongbo %A Lan, Tian %A Venkataramani, Guru %Z Part 7: Software Security and Privacy %< avec comité de lecture %( IFIP Advances in Information and Communication Technology %B 32th IFIP International Conference on ICT Systems Security and Privacy Protection (SEC) %C Rome, Italy %Y Sabrina De Capitani di Vimercati %Y Fabio Martinelli %I Springer International Publishing %3 ICT Systems Security and Privacy Protection %V AICT-502 %P 413-426 %8 2017-05-29 %D 2017 %R 10.1007/978-3-319-58469-0_28 %Z Computer Science [cs]Conference papers %X Unsafe memory accesses in programs written using popular programming languages like C and C++ have been among the leading causes of software vulnerability. Memory safety checkers, such as Softbound, enforce memory spatial safety by checking if accesses to array elements are within the corresponding array bounds. However, such checks often result in high execution time overhead due to the cost of executing the instructions associated with the bound checks. To mitigate this problem, techniques to eliminate redundant bound checks are needed. In this paper, we propose a novel framework, SIMBER, to eliminate redundant memory bound checks via statistical inference. In contrast to the existing techniques that primarily rely on static code analysis, our solution leverages a simple, model-based inference to identify redundant bound checks based on runtime statistics from past program executions. We construct a knowledge base containing sufficient conditions using variables inside functions, which are then applied adaptively to avoid future redundant checks at a function-level granularity. Our experimental results on real-world applications show that SIMBER achieves zero false positives. Also, our approach reduces the performance overhead by up to 86.94% over Softbound, and incurs a modest 1.7% code size increase on average to circumvent the redundant bound checks inserted by Softbound. %G English %Z TC 11 %2 https://inria.hal.science/hal-01648985/document %2 https://inria.hal.science/hal-01648985/file/449885_1_En_28_Chapter.pdf %L hal-01648985 %U https://inria.hal.science/hal-01648985 %~ IFIP %~ IFIP-AICT %~ IFIP-TC %~ IFIP-TC11 %~ IFIP-SEC %~ IFIP-AICT-502