Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 649 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 649 Bytes

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;