Skip to content

Latest commit

 

History

History

episode04

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Episode 4 - Finding Buffer Overflow with Fuzzing

We found a crash with afl, but it turns out to be a bug in the argv-fuzz-inl.h file.

Commands

This project builds iteratively on the previous episodes. In this episode we found a buffer overflow issue in argv-fuzz-inl.h, which we can fix by checking the rc counter cannot count too high.

while (*ptr) {

    // fix buffer overflow
    if(rc >= MAX_CMDLINE_PAR) {
      break;
    }
    
    ret[rc] = ptr;