Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×
Programming

Submission + - Deputy: Type and Memory Safety for C Programs

An anonymous reader writes: Deputy is a C compiler built by researchers at UC Berkeley that uses simple programmer-supplied annotations to catch type and memory errors such as buffer overflows and misuse of union types. For example, if you write a function that takes a buffer and its length as arguments, you can annotate the buffer's type to indicate that its length is stored in the second argument. Using these annotations, Deputy will either verify accesses to this buffer at compile time or insert the required run-time checks. Deputy has already been used on several Linux device drivers and has a corresponding recovery system for Linux called SafeDrive.

Science is what happens when preconception meets verification.

Working...