]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fuzzing target needs arc4random as well
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 20 Jun 2023 11:46:50 +0000 (13:46 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 6 Jul 2023 13:46:42 +0000 (15:46 +0200)
ext/arc4random/arc4random.hh
pdns/Makefile.am

index a130d7f8a6c474cb2eadf7c491649ae74af89dd6..b2f10608650aa2f1f45019be16208ae7087ad291 100644 (file)
@@ -5,6 +5,6 @@
 extern "C"
 {
   uint32_t arc4random(void);
-  void arc4random_buf(void *buf, size_t nbytes);
+  void arc4random_buf(voidbuf, size_t nbytes);
   uint32_t arc4random_uniform(uint32_t upper_bound);
 }
index 50f93222c2fefb1adcaa84d3dfd79b0ca23f7c05..5d188b1ce0612f6e85f371c3efe7912d414090a5 100644 (file)
@@ -1536,7 +1536,7 @@ fuzz_targets_programs =  \
        fuzz_target_yahttp \
        fuzz_target_zoneparsertng
 
-fuzz_targets: $(fuzz_targets_programs)
+fuzz_targets: $(ARC4RANDOM_LIBS) $(fuzz_targets_programs)
 
 bin_PROGRAMS += \
        $(fuzz_targets_programs)