Skip to content

A Large Project comparing the memory safety of c++ to that of Rust

Notifications You must be signed in to change notification settings

dandeandean/C-Rust-Comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Large-Project

A Large Project comparing the memory safety of c++ to that of Rust

Project Guide Lines

Option 6 - Rust programming

Part A

Read the following papers published on top-tier security conferences

Based on these papers, answer the following questions

  • how does Rust prevent common memory errors, like buffer overflow and use-after-free?
  • what is the remaining security issues in rust programs?
  • what is the main challenges of programming in rust?
  • how can we make rust easy to use?
  • what is the main idea of rust-lancet? do you think it is useful for rust developers and why?

Part B

What Does our Project do?

Our program will be a maze solver. The input will be a text document that contains an 'S', 'F', blank spaces, and '#'. The (S)tart and (F)inish blocks will be the start and end of the BFS algorithm to solve the maze. The output will be text to stdout, which is the solved maze with the path taken.

Bewrite a vulnerable program with Rust

  • write a buggy program with C or C++
  • construct an input that will trigger the crash in the C program
  • rewrite the program with rust, and show that the program will not crash under the same input

Part C

Based on the experience in b, would you like to use rust in your future development? why?

About

A Large Project comparing the memory safety of c++ to that of Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •