Skip to content

Commit

Permalink
Exception when there is a different number of Baseline {} and FUZZ ke…
Browse files Browse the repository at this point in the history
…ywords (fixes #416)
  • Loading branch information
xmendez committed Mar 23, 2015
1 parent 5075ea0 commit 574caa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/fuzzer/fuzzobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ def from_baseline(seed):
seed.parseRequest(rawReq, schema)
if seed.wf_fuzz_methods: seed.method = "FUZZ"

baseline_req = FuzzRequest.from_seed(seed, baseline_payload)
try:
baseline_req = FuzzRequest.from_seed(seed, baseline_payload)
except FuzzException:
raise FuzzException(FuzzException.FATAL, "You must supply a baseline value for all the FUZZ words.")
baseline_req.wf_is_baseline = True

return baseline_req
Expand Down

0 comments on commit 574caa5

Please sign in to comment.