Javascript must be enabled to continue!
SafeMD: Ownership-Based Safe Memory Deallocation for C Programs
View through CrossRef
Rust is a relatively new programming language that aims to provide memory safety at compile time. It introduces a novel ownership system that enforces the automatic deallocation of unused resources without using a garbage collector. In light of Rust’s promise of safety, a natural question arises about the possible benefits of exploiting ownership to ensure the memory safety of C programs. In our previous work, we developed a formal ownership checker to verify whether a C program satisfies exclusive ownership constraints. In this paper, we further propose an ownership-based safe memory deallocation approach, named SafeMD, to fix memory leaks in the C programs that satisfy exclusive ownership defined in the prior formal ownership checker. Benefiting from the C programs satisfying exclusive ownership, SafeMD obviates alias and inter-procedural analysis. Also, the patches generated by SafeMD make the input C programs still satisfy exclusive ownership. Usually, a C program that satisfies the exclusive ownership constraints is safer than its normal version. Our evaluation shows that SafeMD is effective in fixing memory leaks of C programs that satisfy exclusive ownership.
Title: SafeMD: Ownership-Based Safe Memory Deallocation for C Programs
Description:
Rust is a relatively new programming language that aims to provide memory safety at compile time.
It introduces a novel ownership system that enforces the automatic deallocation of unused resources without using a garbage collector.
In light of Rust’s promise of safety, a natural question arises about the possible benefits of exploiting ownership to ensure the memory safety of C programs.
In our previous work, we developed a formal ownership checker to verify whether a C program satisfies exclusive ownership constraints.
In this paper, we further propose an ownership-based safe memory deallocation approach, named SafeMD, to fix memory leaks in the C programs that satisfy exclusive ownership defined in the prior formal ownership checker.
Benefiting from the C programs satisfying exclusive ownership, SafeMD obviates alias and inter-procedural analysis.
Also, the patches generated by SafeMD make the input C programs still satisfy exclusive ownership.
Usually, a C program that satisfies the exclusive ownership constraints is safer than its normal version.
Our evaluation shows that SafeMD is effective in fixing memory leaks of C programs that satisfy exclusive ownership.
Related Results
SafeMD:Ownership-based Safe Memory Deallocation for C Programs
SafeMD:Ownership-based Safe Memory Deallocation for C Programs
Rust is a relatively new programming language that aims to provide memory safety at compile time. It introduces a novel ownership system which enforces automatic deallocation of un...
Generic Ownership: a Practical Approach to Ownership and Confinement in Object-Oriented Programming Languages
Generic Ownership: a Practical Approach to Ownership and Confinement in Object-Oriented Programming Languages
<p>Modern object-oriented programming languages support many techniques that simplify the work of a programmer. Among them is generic types: the ability to create generic des...
Impact of Ownership Structure on Bank Risk Taking: A Comparative Analysis of Conventional Banks and Islamic Banks of Pakistan
Impact of Ownership Structure on Bank Risk Taking: A Comparative Analysis of Conventional Banks and Islamic Banks of Pakistan
This study is about the impact of ownership structure on bank risk taking with comparison between conventional banks and Islamic banks of Pakistan. Z-Score and SDROA are used as ri...
The Women Who Don’t Get Counted
The Women Who Don’t Get Counted
Photo by Hédi Benyounes on Unsplash
ABSTRACT
The current incarceration facilities for the growing number of women are depriving expecting mothers of adequate care cruci...
Pengaruh Kepemilikan Manajerial Dan Kepemilikan Institusional Terhadap Nilai Perusahaan Dengan Kebijakan Hutang Sebagai Variabel Intervening
Pengaruh Kepemilikan Manajerial Dan Kepemilikan Institusional Terhadap Nilai Perusahaan Dengan Kebijakan Hutang Sebagai Variabel Intervening
Background - Increasing company value one of the determining factors is ownership structure. Managerial ownership will tend to improve management performance for the benefit of the...
Hierarchical and dynamic relationships between body part ownership and full-body ownership
Hierarchical and dynamic relationships between body part ownership and full-body ownership
What is the relationship between experiencing individual body parts and the whole body as one’s own? We theorised that body part ownership is driven primarily by the perceptual bin...
THE EFFECT OF CONCENTRATED OWNERSHIP ON BANK PROFITABILITY IN INDONESIA
THE EFFECT OF CONCENTRATED OWNERSHIP ON BANK PROFITABILITY IN INDONESIA
This paper examines the association between concentrated ownership and the profitability of banks in Indonesia during the period from 2012 to 2018 with a total sample of 93 banks o...
Association between dog and cat ownership with cardiovascular disease: A systematic review and meta-analysis
Association between dog and cat ownership with cardiovascular disease: A systematic review and meta-analysis
Background: Numerous studies have described the correlation of pet ownership with cardiovascular diseases, with dog and cat ownership emerging as the predominant forms of pet compa...

