include.am 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. # This file was generated by fuzzing_include_am.py; do not hand-edit unless
  2. # you enjoy having your changes erased.
  3. FUZZING_CPPFLAGS = \
  4. $(src_test_AM_CPPFLAGS) $(TEST_CPPFLAGS)
  5. FUZZING_CFLAGS = \
  6. $(AM_CFLAGS) $(TEST_CFLAGS)
  7. FUZZING_LDFLAG = \
  8. @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB) @TOR_LDFLAGS_libevent@
  9. FUZZING_LIBS = \
  10. $(TOR_INTERNAL_TESTING_LIBS) \
  11. $(rust_ldadd) \
  12. @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ \
  13. @TOR_LIBEVENT_LIBS@ $(TOR_LIBS_CRYPTLIB) \
  14. @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ @CURVE25519_LIBS@ \
  15. @TOR_SYSTEMD_LIBS@ \
  16. @TOR_LZMA_LIBS@ \
  17. @TOR_ZSTD_LIBS@
  18. oss-fuzz-prereqs: \
  19. $(TOR_INTERNAL_TESTING_LIBS)
  20. noinst_HEADERS += \
  21. src/test/fuzz/fuzzing.h
  22. LIBFUZZER = -lFuzzer
  23. LIBFUZZER_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
  24. LIBFUZZER_CFLAGS = $(FUZZING_CFLAGS)
  25. LIBFUZZER_LDFLAG = $(FUZZING_LDFLAG)
  26. LIBFUZZER_LIBS = $(FUZZING_LIBS) $(LIBFUZZER) -lstdc++
  27. LIBOSS_FUZZ_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
  28. LIBOSS_FUZZ_CFLAGS = $(FUZZING_CFLAGS)
  29. # ===== AFL fuzzers
  30. if UNITTESTS_ENABLED
  31. src_test_fuzz_fuzz_consensus_SOURCES = \
  32. src/test/fuzz/fuzzing_common.c \
  33. src/test/fuzz/fuzz_consensus.c
  34. src_test_fuzz_fuzz_consensus_CPPFLAGS = $(FUZZING_CPPFLAGS)
  35. src_test_fuzz_fuzz_consensus_CFLAGS = $(FUZZING_CFLAGS)
  36. src_test_fuzz_fuzz_consensus_LDFLAGS = $(FUZZING_LDFLAG)
  37. src_test_fuzz_fuzz_consensus_LDADD = $(FUZZING_LIBS)
  38. endif
  39. if UNITTESTS_ENABLED
  40. src_test_fuzz_fuzz_descriptor_SOURCES = \
  41. src/test/fuzz/fuzzing_common.c \
  42. src/test/fuzz/fuzz_descriptor.c
  43. src_test_fuzz_fuzz_descriptor_CPPFLAGS = $(FUZZING_CPPFLAGS)
  44. src_test_fuzz_fuzz_descriptor_CFLAGS = $(FUZZING_CFLAGS)
  45. src_test_fuzz_fuzz_descriptor_LDFLAGS = $(FUZZING_LDFLAG)
  46. src_test_fuzz_fuzz_descriptor_LDADD = $(FUZZING_LIBS)
  47. endif
  48. if UNITTESTS_ENABLED
  49. src_test_fuzz_fuzz_diff_SOURCES = \
  50. src/test/fuzz/fuzzing_common.c \
  51. src/test/fuzz/fuzz_diff.c
  52. src_test_fuzz_fuzz_diff_CPPFLAGS = $(FUZZING_CPPFLAGS)
  53. src_test_fuzz_fuzz_diff_CFLAGS = $(FUZZING_CFLAGS)
  54. src_test_fuzz_fuzz_diff_LDFLAGS = $(FUZZING_LDFLAG)
  55. src_test_fuzz_fuzz_diff_LDADD = $(FUZZING_LIBS)
  56. endif
  57. if UNITTESTS_ENABLED
  58. src_test_fuzz_fuzz_diff_apply_SOURCES = \
  59. src/test/fuzz/fuzzing_common.c \
  60. src/test/fuzz/fuzz_diff_apply.c
  61. src_test_fuzz_fuzz_diff_apply_CPPFLAGS = $(FUZZING_CPPFLAGS)
  62. src_test_fuzz_fuzz_diff_apply_CFLAGS = $(FUZZING_CFLAGS)
  63. src_test_fuzz_fuzz_diff_apply_LDFLAGS = $(FUZZING_LDFLAG)
  64. src_test_fuzz_fuzz_diff_apply_LDADD = $(FUZZING_LIBS)
  65. endif
  66. if UNITTESTS_ENABLED
  67. src_test_fuzz_fuzz_extrainfo_SOURCES = \
  68. src/test/fuzz/fuzzing_common.c \
  69. src/test/fuzz/fuzz_extrainfo.c
  70. src_test_fuzz_fuzz_extrainfo_CPPFLAGS = $(FUZZING_CPPFLAGS)
  71. src_test_fuzz_fuzz_extrainfo_CFLAGS = $(FUZZING_CFLAGS)
  72. src_test_fuzz_fuzz_extrainfo_LDFLAGS = $(FUZZING_LDFLAG)
  73. src_test_fuzz_fuzz_extrainfo_LDADD = $(FUZZING_LIBS)
  74. endif
  75. if UNITTESTS_ENABLED
  76. src_test_fuzz_fuzz_hsdescv2_SOURCES = \
  77. src/test/fuzz/fuzzing_common.c \
  78. src/test/fuzz/fuzz_hsdescv2.c
  79. src_test_fuzz_fuzz_hsdescv2_CPPFLAGS = $(FUZZING_CPPFLAGS)
  80. src_test_fuzz_fuzz_hsdescv2_CFLAGS = $(FUZZING_CFLAGS)
  81. src_test_fuzz_fuzz_hsdescv2_LDFLAGS = $(FUZZING_LDFLAG)
  82. src_test_fuzz_fuzz_hsdescv2_LDADD = $(FUZZING_LIBS)
  83. endif
  84. if UNITTESTS_ENABLED
  85. src_test_fuzz_fuzz_hsdescv3_SOURCES = \
  86. src/test/fuzz/fuzzing_common.c \
  87. src/test/fuzz/fuzz_hsdescv3.c
  88. src_test_fuzz_fuzz_hsdescv3_CPPFLAGS = $(FUZZING_CPPFLAGS)
  89. src_test_fuzz_fuzz_hsdescv3_CFLAGS = $(FUZZING_CFLAGS)
  90. src_test_fuzz_fuzz_hsdescv3_LDFLAGS = $(FUZZING_LDFLAG)
  91. src_test_fuzz_fuzz_hsdescv3_LDADD = $(FUZZING_LIBS)
  92. endif
  93. if UNITTESTS_ENABLED
  94. src_test_fuzz_fuzz_http_SOURCES = \
  95. src/test/fuzz/fuzzing_common.c \
  96. src/test/fuzz/fuzz_http.c
  97. src_test_fuzz_fuzz_http_CPPFLAGS = $(FUZZING_CPPFLAGS)
  98. src_test_fuzz_fuzz_http_CFLAGS = $(FUZZING_CFLAGS)
  99. src_test_fuzz_fuzz_http_LDFLAGS = $(FUZZING_LDFLAG)
  100. src_test_fuzz_fuzz_http_LDADD = $(FUZZING_LIBS)
  101. endif
  102. if UNITTESTS_ENABLED
  103. src_test_fuzz_fuzz_http_connect_SOURCES = \
  104. src/test/fuzz/fuzzing_common.c \
  105. src/test/fuzz/fuzz_http_connect.c
  106. src_test_fuzz_fuzz_http_connect_CPPFLAGS = $(FUZZING_CPPFLAGS)
  107. src_test_fuzz_fuzz_http_connect_CFLAGS = $(FUZZING_CFLAGS)
  108. src_test_fuzz_fuzz_http_connect_LDFLAGS = $(FUZZING_LDFLAG)
  109. src_test_fuzz_fuzz_http_connect_LDADD = $(FUZZING_LIBS)
  110. endif
  111. if UNITTESTS_ENABLED
  112. src_test_fuzz_fuzz_iptsv2_SOURCES = \
  113. src/test/fuzz/fuzzing_common.c \
  114. src/test/fuzz/fuzz_iptsv2.c
  115. src_test_fuzz_fuzz_iptsv2_CPPFLAGS = $(FUZZING_CPPFLAGS)
  116. src_test_fuzz_fuzz_iptsv2_CFLAGS = $(FUZZING_CFLAGS)
  117. src_test_fuzz_fuzz_iptsv2_LDFLAGS = $(FUZZING_LDFLAG)
  118. src_test_fuzz_fuzz_iptsv2_LDADD = $(FUZZING_LIBS)
  119. endif
  120. if UNITTESTS_ENABLED
  121. src_test_fuzz_fuzz_microdesc_SOURCES = \
  122. src/test/fuzz/fuzzing_common.c \
  123. src/test/fuzz/fuzz_microdesc.c
  124. src_test_fuzz_fuzz_microdesc_CPPFLAGS = $(FUZZING_CPPFLAGS)
  125. src_test_fuzz_fuzz_microdesc_CFLAGS = $(FUZZING_CFLAGS)
  126. src_test_fuzz_fuzz_microdesc_LDFLAGS = $(FUZZING_LDFLAG)
  127. src_test_fuzz_fuzz_microdesc_LDADD = $(FUZZING_LIBS)
  128. endif
  129. if UNITTESTS_ENABLED
  130. src_test_fuzz_fuzz_socks_SOURCES = \
  131. src/test/fuzz/fuzzing_common.c \
  132. src/test/fuzz/fuzz_socks.c
  133. src_test_fuzz_fuzz_socks_CPPFLAGS = $(FUZZING_CPPFLAGS)
  134. src_test_fuzz_fuzz_socks_CFLAGS = $(FUZZING_CFLAGS)
  135. src_test_fuzz_fuzz_socks_LDFLAGS = $(FUZZING_LDFLAG)
  136. src_test_fuzz_fuzz_socks_LDADD = $(FUZZING_LIBS)
  137. endif
  138. if UNITTESTS_ENABLED
  139. src_test_fuzz_fuzz_vrs_SOURCES = \
  140. src/test/fuzz/fuzzing_common.c \
  141. src/test/fuzz/fuzz_vrs.c
  142. src_test_fuzz_fuzz_vrs_CPPFLAGS = $(FUZZING_CPPFLAGS)
  143. src_test_fuzz_fuzz_vrs_CFLAGS = $(FUZZING_CFLAGS)
  144. src_test_fuzz_fuzz_vrs_LDFLAGS = $(FUZZING_LDFLAG)
  145. src_test_fuzz_fuzz_vrs_LDADD = $(FUZZING_LIBS)
  146. endif
  147. if UNITTESTS_ENABLED
  148. FUZZERS = \
  149. src/test/fuzz/fuzz-consensus \
  150. src/test/fuzz/fuzz-descriptor \
  151. src/test/fuzz/fuzz-diff \
  152. src/test/fuzz/fuzz-diff-apply \
  153. src/test/fuzz/fuzz-extrainfo \
  154. src/test/fuzz/fuzz-hsdescv2 \
  155. src/test/fuzz/fuzz-hsdescv3 \
  156. src/test/fuzz/fuzz-http \
  157. src/test/fuzz/fuzz-http-connect \
  158. src/test/fuzz/fuzz-iptsv2 \
  159. src/test/fuzz/fuzz-microdesc \
  160. src/test/fuzz/fuzz-socks \
  161. src/test/fuzz/fuzz-vrs
  162. endif
  163. # ===== libfuzzer
  164. if LIBFUZZER_ENABLED
  165. if UNITTESTS_ENABLED
  166. src_test_fuzz_lf_fuzz_consensus_SOURCES = \
  167. $(src_test_fuzz_fuzz_consensus_SOURCES)
  168. src_test_fuzz_lf_fuzz_consensus_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  169. src_test_fuzz_lf_fuzz_consensus_CFLAGS = $(LIBFUZZER_CFLAGS)
  170. src_test_fuzz_lf_fuzz_consensus_LDFLAGS = $(LIBFUZZER_LDFLAG)
  171. src_test_fuzz_lf_fuzz_consensus_LDADD = $(LIBFUZZER_LIBS)
  172. endif
  173. if UNITTESTS_ENABLED
  174. src_test_fuzz_lf_fuzz_descriptor_SOURCES = \
  175. $(src_test_fuzz_fuzz_descriptor_SOURCES)
  176. src_test_fuzz_lf_fuzz_descriptor_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  177. src_test_fuzz_lf_fuzz_descriptor_CFLAGS = $(LIBFUZZER_CFLAGS)
  178. src_test_fuzz_lf_fuzz_descriptor_LDFLAGS = $(LIBFUZZER_LDFLAG)
  179. src_test_fuzz_lf_fuzz_descriptor_LDADD = $(LIBFUZZER_LIBS)
  180. endif
  181. if UNITTESTS_ENABLED
  182. src_test_fuzz_lf_fuzz_diff_SOURCES = \
  183. $(src_test_fuzz_fuzz_diff_SOURCES)
  184. src_test_fuzz_lf_fuzz_diff_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  185. src_test_fuzz_lf_fuzz_diff_CFLAGS = $(LIBFUZZER_CFLAGS)
  186. src_test_fuzz_lf_fuzz_diff_LDFLAGS = $(LIBFUZZER_LDFLAG)
  187. src_test_fuzz_lf_fuzz_diff_LDADD = $(LIBFUZZER_LIBS)
  188. endif
  189. if UNITTESTS_ENABLED
  190. src_test_fuzz_lf_fuzz_diff_apply_SOURCES = \
  191. $(src_test_fuzz_fuzz_diff_apply_SOURCES)
  192. src_test_fuzz_lf_fuzz_diff_apply_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  193. src_test_fuzz_lf_fuzz_diff_apply_CFLAGS = $(LIBFUZZER_CFLAGS)
  194. src_test_fuzz_lf_fuzz_diff_apply_LDFLAGS = $(LIBFUZZER_LDFLAG)
  195. src_test_fuzz_lf_fuzz_diff_apply_LDADD = $(LIBFUZZER_LIBS)
  196. endif
  197. if UNITTESTS_ENABLED
  198. src_test_fuzz_lf_fuzz_extrainfo_SOURCES = \
  199. $(src_test_fuzz_fuzz_extrainfo_SOURCES)
  200. src_test_fuzz_lf_fuzz_extrainfo_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  201. src_test_fuzz_lf_fuzz_extrainfo_CFLAGS = $(LIBFUZZER_CFLAGS)
  202. src_test_fuzz_lf_fuzz_extrainfo_LDFLAGS = $(LIBFUZZER_LDFLAG)
  203. src_test_fuzz_lf_fuzz_extrainfo_LDADD = $(LIBFUZZER_LIBS)
  204. endif
  205. if UNITTESTS_ENABLED
  206. src_test_fuzz_lf_fuzz_hsdescv2_SOURCES = \
  207. $(src_test_fuzz_fuzz_hsdescv2_SOURCES)
  208. src_test_fuzz_lf_fuzz_hsdescv2_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  209. src_test_fuzz_lf_fuzz_hsdescv2_CFLAGS = $(LIBFUZZER_CFLAGS)
  210. src_test_fuzz_lf_fuzz_hsdescv2_LDFLAGS = $(LIBFUZZER_LDFLAG)
  211. src_test_fuzz_lf_fuzz_hsdescv2_LDADD = $(LIBFUZZER_LIBS)
  212. endif
  213. if UNITTESTS_ENABLED
  214. src_test_fuzz_lf_fuzz_hsdescv3_SOURCES = \
  215. $(src_test_fuzz_fuzz_hsdescv3_SOURCES)
  216. src_test_fuzz_lf_fuzz_hsdescv3_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  217. src_test_fuzz_lf_fuzz_hsdescv3_CFLAGS = $(LIBFUZZER_CFLAGS)
  218. src_test_fuzz_lf_fuzz_hsdescv3_LDFLAGS = $(LIBFUZZER_LDFLAG)
  219. src_test_fuzz_lf_fuzz_hsdescv3_LDADD = $(LIBFUZZER_LIBS)
  220. endif
  221. if UNITTESTS_ENABLED
  222. src_test_fuzz_lf_fuzz_http_SOURCES = \
  223. $(src_test_fuzz_fuzz_http_SOURCES)
  224. src_test_fuzz_lf_fuzz_http_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  225. src_test_fuzz_lf_fuzz_http_CFLAGS = $(LIBFUZZER_CFLAGS)
  226. src_test_fuzz_lf_fuzz_http_LDFLAGS = $(LIBFUZZER_LDFLAG)
  227. src_test_fuzz_lf_fuzz_http_LDADD = $(LIBFUZZER_LIBS)
  228. endif
  229. if UNITTESTS_ENABLED
  230. src_test_fuzz_lf_fuzz_http_connect_SOURCES = \
  231. $(src_test_fuzz_fuzz_http_connect_SOURCES)
  232. src_test_fuzz_lf_fuzz_http_connect_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  233. src_test_fuzz_lf_fuzz_http_connect_CFLAGS = $(LIBFUZZER_CFLAGS)
  234. src_test_fuzz_lf_fuzz_http_connect_LDFLAGS = $(LIBFUZZER_LDFLAG)
  235. src_test_fuzz_lf_fuzz_http_connect_LDADD = $(LIBFUZZER_LIBS)
  236. endif
  237. if UNITTESTS_ENABLED
  238. src_test_fuzz_lf_fuzz_iptsv2_SOURCES = \
  239. $(src_test_fuzz_fuzz_iptsv2_SOURCES)
  240. src_test_fuzz_lf_fuzz_iptsv2_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  241. src_test_fuzz_lf_fuzz_iptsv2_CFLAGS = $(LIBFUZZER_CFLAGS)
  242. src_test_fuzz_lf_fuzz_iptsv2_LDFLAGS = $(LIBFUZZER_LDFLAG)
  243. src_test_fuzz_lf_fuzz_iptsv2_LDADD = $(LIBFUZZER_LIBS)
  244. endif
  245. if UNITTESTS_ENABLED
  246. src_test_fuzz_lf_fuzz_microdesc_SOURCES = \
  247. $(src_test_fuzz_fuzz_microdesc_SOURCES)
  248. src_test_fuzz_lf_fuzz_microdesc_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  249. src_test_fuzz_lf_fuzz_microdesc_CFLAGS = $(LIBFUZZER_CFLAGS)
  250. src_test_fuzz_lf_fuzz_microdesc_LDFLAGS = $(LIBFUZZER_LDFLAG)
  251. src_test_fuzz_lf_fuzz_microdesc_LDADD = $(LIBFUZZER_LIBS)
  252. endif
  253. if UNITTESTS_ENABLED
  254. src_test_fuzz_lf_fuzz_socks_SOURCES = \
  255. $(src_test_fuzz_fuzz_socks_SOURCES)
  256. src_test_fuzz_lf_fuzz_socks_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  257. src_test_fuzz_lf_fuzz_socks_CFLAGS = $(LIBFUZZER_CFLAGS)
  258. src_test_fuzz_lf_fuzz_socks_LDFLAGS = $(LIBFUZZER_LDFLAG)
  259. src_test_fuzz_lf_fuzz_socks_LDADD = $(LIBFUZZER_LIBS)
  260. endif
  261. if UNITTESTS_ENABLED
  262. src_test_fuzz_lf_fuzz_vrs_SOURCES = \
  263. $(src_test_fuzz_fuzz_vrs_SOURCES)
  264. src_test_fuzz_lf_fuzz_vrs_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
  265. src_test_fuzz_lf_fuzz_vrs_CFLAGS = $(LIBFUZZER_CFLAGS)
  266. src_test_fuzz_lf_fuzz_vrs_LDFLAGS = $(LIBFUZZER_LDFLAG)
  267. src_test_fuzz_lf_fuzz_vrs_LDADD = $(LIBFUZZER_LIBS)
  268. endif
  269. LIBFUZZER_FUZZERS = \
  270. src/test/fuzz/lf-fuzz-consensus \
  271. src/test/fuzz/lf-fuzz-descriptor \
  272. src/test/fuzz/lf-fuzz-diff \
  273. src/test/fuzz/lf-fuzz-diff-apply \
  274. src/test/fuzz/lf-fuzz-extrainfo \
  275. src/test/fuzz/lf-fuzz-hsdescv2 \
  276. src/test/fuzz/lf-fuzz-hsdescv3 \
  277. src/test/fuzz/lf-fuzz-http \
  278. src/test/fuzz/lf-fuzz-http-connect \
  279. src/test/fuzz/lf-fuzz-iptsv2 \
  280. src/test/fuzz/lf-fuzz-microdesc \
  281. src/test/fuzz/lf-fuzz-socks \
  282. src/test/fuzz/lf-fuzz-vrs
  283. else
  284. LIBFUZZER_FUZZERS =
  285. endif
  286. # ===== oss-fuzz
  287. if OSS_FUZZ_ENABLED
  288. if UNITTESTS_ENABLED
  289. src_test_fuzz_liboss_fuzz_consensus_a_SOURCES = \
  290. $(src_test_fuzz_fuzz_consensus_SOURCES)
  291. src_test_fuzz_liboss_fuzz_consensus_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  292. src_test_fuzz_liboss_fuzz_consensus_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  293. endif
  294. if UNITTESTS_ENABLED
  295. src_test_fuzz_liboss_fuzz_descriptor_a_SOURCES = \
  296. $(src_test_fuzz_fuzz_descriptor_SOURCES)
  297. src_test_fuzz_liboss_fuzz_descriptor_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  298. src_test_fuzz_liboss_fuzz_descriptor_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  299. endif
  300. if UNITTESTS_ENABLED
  301. src_test_fuzz_liboss_fuzz_diff_a_SOURCES = \
  302. $(src_test_fuzz_fuzz_diff_SOURCES)
  303. src_test_fuzz_liboss_fuzz_diff_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  304. src_test_fuzz_liboss_fuzz_diff_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  305. endif
  306. if UNITTESTS_ENABLED
  307. src_test_fuzz_liboss_fuzz_diff_apply_a_SOURCES = \
  308. $(src_test_fuzz_fuzz_diff_apply_SOURCES)
  309. src_test_fuzz_liboss_fuzz_diff_apply_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  310. src_test_fuzz_liboss_fuzz_diff_apply_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  311. endif
  312. if UNITTESTS_ENABLED
  313. src_test_fuzz_liboss_fuzz_extrainfo_a_SOURCES = \
  314. $(src_test_fuzz_fuzz_extrainfo_SOURCES)
  315. src_test_fuzz_liboss_fuzz_extrainfo_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  316. src_test_fuzz_liboss_fuzz_extrainfo_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  317. endif
  318. if UNITTESTS_ENABLED
  319. src_test_fuzz_liboss_fuzz_hsdescv2_a_SOURCES = \
  320. $(src_test_fuzz_fuzz_hsdescv2_SOURCES)
  321. src_test_fuzz_liboss_fuzz_hsdescv2_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  322. src_test_fuzz_liboss_fuzz_hsdescv2_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  323. endif
  324. if UNITTESTS_ENABLED
  325. src_test_fuzz_liboss_fuzz_hsdescv3_a_SOURCES = \
  326. $(src_test_fuzz_fuzz_hsdescv3_SOURCES)
  327. src_test_fuzz_liboss_fuzz_hsdescv3_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  328. src_test_fuzz_liboss_fuzz_hsdescv3_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  329. endif
  330. if UNITTESTS_ENABLED
  331. src_test_fuzz_liboss_fuzz_http_a_SOURCES = \
  332. $(src_test_fuzz_fuzz_http_SOURCES)
  333. src_test_fuzz_liboss_fuzz_http_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  334. src_test_fuzz_liboss_fuzz_http_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  335. endif
  336. if UNITTESTS_ENABLED
  337. src_test_fuzz_liboss_fuzz_http_connect_a_SOURCES = \
  338. $(src_test_fuzz_fuzz_http_connect_SOURCES)
  339. src_test_fuzz_liboss_fuzz_http_connect_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  340. src_test_fuzz_liboss_fuzz_http_connect_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  341. endif
  342. if UNITTESTS_ENABLED
  343. src_test_fuzz_liboss_fuzz_iptsv2_a_SOURCES = \
  344. $(src_test_fuzz_fuzz_iptsv2_SOURCES)
  345. src_test_fuzz_liboss_fuzz_iptsv2_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  346. src_test_fuzz_liboss_fuzz_iptsv2_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  347. endif
  348. if UNITTESTS_ENABLED
  349. src_test_fuzz_liboss_fuzz_microdesc_a_SOURCES = \
  350. $(src_test_fuzz_fuzz_microdesc_SOURCES)
  351. src_test_fuzz_liboss_fuzz_microdesc_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  352. src_test_fuzz_liboss_fuzz_microdesc_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  353. endif
  354. if UNITTESTS_ENABLED
  355. src_test_fuzz_liboss_fuzz_socks_a_SOURCES = \
  356. $(src_test_fuzz_fuzz_socks_SOURCES)
  357. src_test_fuzz_liboss_fuzz_socks_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  358. src_test_fuzz_liboss_fuzz_socks_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  359. endif
  360. if UNITTESTS_ENABLED
  361. src_test_fuzz_liboss_fuzz_vrs_a_SOURCES = \
  362. $(src_test_fuzz_fuzz_vrs_SOURCES)
  363. src_test_fuzz_liboss_fuzz_vrs_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
  364. src_test_fuzz_liboss_fuzz_vrs_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
  365. endif
  366. OSS_FUZZ_FUZZERS = \
  367. src/test/fuzz/liboss-fuzz-consensus.a \
  368. src/test/fuzz/liboss-fuzz-descriptor.a \
  369. src/test/fuzz/liboss-fuzz-diff.a \
  370. src/test/fuzz/liboss-fuzz-diff-apply.a \
  371. src/test/fuzz/liboss-fuzz-extrainfo.a \
  372. src/test/fuzz/liboss-fuzz-hsdescv2.a \
  373. src/test/fuzz/liboss-fuzz-hsdescv3.a \
  374. src/test/fuzz/liboss-fuzz-http.a \
  375. src/test/fuzz/liboss-fuzz-http-connect.a \
  376. src/test/fuzz/liboss-fuzz-iptsv2.a \
  377. src/test/fuzz/liboss-fuzz-microdesc.a \
  378. src/test/fuzz/liboss-fuzz-socks.a \
  379. src/test/fuzz/liboss-fuzz-vrs.a
  380. else
  381. OSS_FUZZ_FUZZERS =
  382. endif
  383. noinst_PROGRAMS += $(FUZZERS) $(LIBFUZZER_FUZZERS)
  384. noinst_LIBRARIES += $(OSS_FUZZ_FUZZERS)
  385. oss-fuzz-fuzzers: oss-fuzz-prereqs $(OSS_FUZZ_FUZZERS)
  386. fuzzers: $(FUZZERS) $(LIBFUZZER_FUZZERS)
  387. test-fuzz-corpora: $(FUZZERS)
  388. $(top_srcdir)/src/test/fuzz_static_testcases.sh