Skip to content
Snippets Groups Projects

Yuqiang vulnerabilities

Closed Yuqiang Zhu requested to merge yuqiangz/swen90006-a2-2019:Yuqiang-Vulnerabilities into master
3 files
+ 254
47
Compare changes
  • Side-by-side
  • Inline
Files
3
  • cbee69b4
    Done: · cbee69b4
    Yang Liu authored
    1. Finished fuzzer with random commands generation and run counter.
    2. Fixed some bugs which results in crash.
    3. Updated README.md, attached commands to run tests at the end of the file.
+ 5
8
@@ -13,14 +13,11 @@ public class Fuzzer {
FileOutputStream out = null;
PrintWriter pw = null;
try {
out = new FileOutputStream(OUTPUT_FILE);
pw = new PrintWriter(out);
/* We just print one instruction.
Hint: you might want to make use of the instruction
grammar which is effectively encoded in Instruction.java */
pw.println("list");
InputGenerator inputGenerator = new InputGenerator(
1022,
1024,
"fuzz.txt");
inputGenerator.generateFuzz(InputGenerator.MODE.TOTAL_RANDOM);
}catch (Exception e){
e.printStackTrace(System.err);
System.exit(1);
Loading