test.sh: "trusty-amd64" does not work well with "realpath". Use

"readlink -f" for Ubuntu instead.
This commit is contained in:
h1994st
2020-03-29 01:22:44 -04:00
committed by Dominik Maier
parent 567b3985ab
commit 6c14415664
2 changed files with 20 additions and 8 deletions

View File

@ -17,6 +17,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
COMMANDS = [
b"GET",
b"PUT",
b"DEL",
]
def init(seed):
'''
Called once when AFLFuzz starts up. Used to seed our RNG.
@ -48,8 +55,9 @@ def fuzz(buf, add_buf, max_size):
@rtype: bytearray
@return: A new bytearray containing the mutated data
'''
ret = bytearray(buf)
# Do something interesting with ret
ret = bytearray(100)
ret[:3] = random.choice(COMMANDS)
return ret