Slide 10
Slide 10 text
Solution??
● The problem lies in native C functions, which don't care
about doing appropriate buffer length checks
● Use safe equivalent functions, which check the buffers
length like fgets(buf, nbytes, stream), strncpy(destbuf,
srcbuf, nbytes)
● Better compilers