#Code review (Advice)

1 messages · Page 1 of 1 (latest)

dusky latch
#

Hey! I've been writing a simple dumb fuzzer to look for overflowable calls to copy_from_user with the idea of finding some bugs in an old phone.

The source code is here:
https://zigbin.io/fd2dcd

There's not that much, but enough for Discord to dislike it.

I'm looking for any advice. Zig specific advice. General programming advice:) Cheers

polar maple
#
  • no need for listparameter to be mutable in fuzzer_driver
  • why do this const RndGen = std.rand.DefaultPrng; when you could do this var rnd = std.rand.DefaultPrng.init(42);
  • why catch return; instead of try in a function that can error (line 53)?