Skip to content

Commit faa8e5f

Browse files
committed
Fix for dictionary mutator failing to return correct values.
The dictionary mutator wasn't actually returning the correct values, so was always claiming to fail.
1 parent ae27ac9 commit faa8e5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎pythonfuzz/corpus.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ def mutate(self, res):
361361
res.append(0)
362362
self.copy(res, res, pos, pos+len(word))
363363
for k in range(len(word)):
364-
res[pos+k] = ord(word[k])
364+
res[pos+k] = word[k]
365+
return res
365366

366367

367368
class CorpusError(Exception):

0 commit comments

Comments
 (0)