Make the parse_certificate_fuzzer from libpki work inside boring.

Seed the corpus from cert_corpus. As part of that, check in the result of minimizing all the corpora.

Note this is just making one of the fuzzers build, I'll adapt
the others and follow on by updating the IMPORT process to do it
in a follow on cl.

Bug: chromium:1322914

Change-Id: Iea1b89f8fee938fa99c0a4d8134bcd0e7023d149
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61765
Commit-Queue: Bob Beck <bbe@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
chromium-stable
Bob Beck 1 year ago committed by Boringssl LUCI CQ
parent 441e9ad2b2
commit 4d70016a62
  1. 7
      fuzz/CMakeLists.txt
  2. 14
      fuzz/arm_cpuinfo_corpus/27cdc19e630f4174c00376cdc51b1c556723b0e1
  3. BIN
      fuzz/bn_div_corpus/003c251663b41c83a0f83abc47c785b353849b99
  4. BIN
      fuzz/bn_div_corpus/003cade09fe7fd51c9a44a547f9d37e54a772cde
  5. BIN
      fuzz/bn_div_corpus/006ab25bff8f0f5e84dfe2baa2ea02174b6f7c10
  6. BIN
      fuzz/bn_div_corpus/009618c4aa60db6fa4825583b2a2dc90b3007617
  7. BIN
      fuzz/bn_div_corpus/00eae5bf127a9ff9732396d7f57a817aff3a4403
  8. BIN
      fuzz/bn_div_corpus/01543cd779056b260c4b5bfa43ec480d1bf361c1
  9. BIN
      fuzz/bn_div_corpus/01b310cc936449925aa14116993fda45175fbed5
  10. BIN
      fuzz/bn_div_corpus/030d55f5afce6b4c450393af0293b8b5a0f8eeca
  11. BIN
      fuzz/bn_div_corpus/034cda0ad8bddc7922a41e5a8d438708e87673fc
  12. BIN
      fuzz/bn_div_corpus/03e4c1b3ee2f38f138d9082a553ac7d6bc1fb24c
  13. BIN
      fuzz/bn_div_corpus/04b63b12febc233115a8c44d88e429d03f9a91e9
  14. BIN
      fuzz/bn_div_corpus/04c44973f48f90dd1f5119f5dedc2c62531cfc69
  15. BIN
      fuzz/bn_div_corpus/0590f2885c4d05cedc1a53435186ac4ff831b428
  16. BIN
      fuzz/bn_div_corpus/05de273a1f0e624b46aec10ad013cf6db26659ad
  17. BIN
      fuzz/bn_div_corpus/08636c33e4b47d83361be61eb24636266eb5dadc
  18. BIN
      fuzz/bn_div_corpus/0d5d7b0e6ee453dc250e928d4535e3848c2e120d
  19. BIN
      fuzz/bn_div_corpus/0df16313101b2c6cba085de0e7a55bea5d2b8301
  20. BIN
      fuzz/bn_div_corpus/0e5abe4893350487dcdac15344f2156bf3b291e7
  21. BIN
      fuzz/bn_div_corpus/1007fe34b68fe623c436205e766c33399a5905c1
  22. BIN
      fuzz/bn_div_corpus/10d74a5ddcffa142aa705863ec08a2bf575f8fc8
  23. BIN
      fuzz/bn_div_corpus/1122ec743631816220ea940c64a01de3708a7771
  24. BIN
      fuzz/bn_div_corpus/11636b2cede4e8debde4531dd950801dc1254e11
  25. BIN
      fuzz/bn_div_corpus/116a4f61a35ae003b110d744dd5fc569a29dc207
  26. BIN
      fuzz/bn_div_corpus/13433978724b6cf97fb21ead791082b5824db5d7
  27. BIN
      fuzz/bn_div_corpus/13f3e10c88dfac8df7b3da2e95acb0ef52ef5b6b
  28. BIN
      fuzz/bn_div_corpus/147da56e26de3891992324dcd8dd8b0759c03e5e
  29. BIN
      fuzz/bn_div_corpus/1600c39137b6f4f2921b64e3ad934797f9b5499a
  30. BIN
      fuzz/bn_div_corpus/16ba502c08cc88ed79d85307f0c019f5f0ad6d4a
  31. BIN
      fuzz/bn_div_corpus/16cd2d46b10be63c9e6429b548f4d8b7586b1fcd
  32. BIN
      fuzz/bn_div_corpus/16f837bd75ed601337286d1bafeff845d6e7f5af
  33. BIN
      fuzz/bn_div_corpus/18678dbe51820907f30a543a39a5ce4890e77aac
  34. BIN
      fuzz/bn_div_corpus/19eb8f8d64a221ac9b6ebc19c2b01c65bbbaad60
  35. BIN
      fuzz/bn_div_corpus/1a8717a7d5a4de647ba21a7a4d0d66bd5f694ec3
  36. BIN
      fuzz/bn_div_corpus/1ad98d91fac0f43a6a108a6f18e236886f2a0a81
  37. BIN
      fuzz/bn_div_corpus/1adb2e5b9cb9292fa5d3067b4704203858c8c3d9
  38. BIN
      fuzz/bn_div_corpus/1ba4b55166f9ebafd3b6ddc502276a54c83cfcf9
  39. BIN
      fuzz/bn_div_corpus/1d512e6091c41442e3acbeb3a49e1dfa2b0ed41d
  40. BIN
      fuzz/bn_div_corpus/1d5ab9999abd2d04f4c7edab196352d5148b848f
  41. BIN
      fuzz/bn_div_corpus/1e185c4d2c54ea13a4006fe82f41c5e63c0c734a
  42. BIN
      fuzz/bn_div_corpus/1e720afc6799139f509885183882a7d463c04017
  43. BIN
      fuzz/bn_div_corpus/1eb1a8dac2ffc01657ec67a59e48dc5a4c4209a2
  44. BIN
      fuzz/bn_div_corpus/1fac44d4b2a9c3963e60952c1ab189e70236e268
  45. BIN
      fuzz/bn_div_corpus/21f47a7efea19d8c97bfd38d67608917ac25a2e8
  46. BIN
      fuzz/bn_div_corpus/22201bc36a29340d7e1457c7169244fa7d75f5b0
  47. BIN
      fuzz/bn_div_corpus/2462eb8267df7f9c57cb169ccd5f83f824999924
  48. BIN
      fuzz/bn_div_corpus/24992f2947cc190e06cc3423f34bbf0d5b9c77af
  49. BIN
      fuzz/bn_div_corpus/24ccb6527b148b2b293f84f5ee29083c1718ea8b
  50. BIN
      fuzz/bn_div_corpus/24f546e5d14aa1ef7d1c0574ac53f275141ca335
  51. BIN
      fuzz/bn_div_corpus/260f5f38a05c0b86286014c723bf15837133c512
  52. BIN
      fuzz/bn_div_corpus/2695c14cacabe2f20dee7bbfccc630b33093bbc1
  53. BIN
      fuzz/bn_div_corpus/2787398eb3868e1e0d7e5e8a2a932ca04b64174b
  54. BIN
      fuzz/bn_div_corpus/2868fd2bc0a370302e2b90532ed5eb2cbd300cc0
  55. BIN
      fuzz/bn_div_corpus/2ad8ea8d2879adcd3fa5926616ca16eab98260f0
  56. BIN
      fuzz/bn_div_corpus/2ada1e59d327c070fba8fa6a00404c196c7b6dfa
  57. BIN
      fuzz/bn_div_corpus/2b43b231cb8ee078f31e38e884ceedb5bf18a37a
  58. BIN
      fuzz/bn_div_corpus/2c29e2bad2ae976ef593db4796a04fc3e3f40bcb
  59. BIN
      fuzz/bn_div_corpus/2dbeba8208ab77d746377889e1ee20715875766d
  60. BIN
      fuzz/bn_div_corpus/2e1381385cc2dc798118dcf6645b9529d871fe77
  61. BIN
      fuzz/bn_div_corpus/2e1508cc1db1cb803045f44814704fd0c6bb248f
  62. BIN
      fuzz/bn_div_corpus/2e322067c6a967f906133491006428a9cc18e282
  63. BIN
      fuzz/bn_div_corpus/2ef6113bd8ae14d31b9a11789647fd245c120d23
  64. BIN
      fuzz/bn_div_corpus/2f68c08c3f13117fc5153ed449056f4a31023f79
  65. BIN
      fuzz/bn_div_corpus/3058a14bd20e3ba0b94cc260189143721351cacb
  66. BIN
      fuzz/bn_div_corpus/33730cd5df61f8c0ed0105f4abf26d74f42672f5
  67. BIN
      fuzz/bn_div_corpus/3479cd4696ae8bf8d641ca53f69143bf484df988
  68. BIN
      fuzz/bn_div_corpus/3489093faf34881aade2e0db263795ea396ec35a
  69. BIN
      fuzz/bn_div_corpus/360ea394db0548bfe771d4f894553a808ec4609b
  70. BIN
      fuzz/bn_div_corpus/3770ad25a45e13d523e3ae54ac11ac54fbb1a889
  71. BIN
      fuzz/bn_div_corpus/387c1c7882c47d1470a148341b7a63c3d8e413e7
  72. BIN
      fuzz/bn_div_corpus/39424b949a03f7ce515be0ef024d3cbdb83b3f74
  73. BIN
      fuzz/bn_div_corpus/395f71374486a23f95c16975ff7c2b7c02a04d60
  74. BIN
      fuzz/bn_div_corpus/39d86d1f16cc59e9d5b47267c17a063ed811b3e8
  75. BIN
      fuzz/bn_div_corpus/3cc6238e837106ea8dc062b7a39061d92cc97586
  76. BIN
      fuzz/bn_div_corpus/3e2de16343914b4fa1c35867a0a2071d846b3a66
  77. BIN
      fuzz/bn_div_corpus/3e43d2e4491a5a257b40ddb5c7566fb1289f09ae
  78. BIN
      fuzz/bn_div_corpus/3e6108cb405c348f58249287fcd607626a71f956
  79. BIN
      fuzz/bn_div_corpus/3e6db37bc07458c9b2f08cc890cace2b76a8d02b
  80. BIN
      fuzz/bn_div_corpus/3fa6a605dc488dea0e8cf98463b0fdd74d4ad18d
  81. BIN
      fuzz/bn_div_corpus/40b223b37099359d0b0bfb37aed17c4ce37bfe1d
  82. BIN
      fuzz/bn_div_corpus/40d507df55c1d66bbd76e27e4206ce9e3eb38041
  83. BIN
      fuzz/bn_div_corpus/41e3b20e1caf501b959d8445ef2acfb1637bbd8b
  84. BIN
      fuzz/bn_div_corpus/42eef4ce640f435ae01f62b414e3a6dce0bf4d5e
  85. BIN
      fuzz/bn_div_corpus/44c28d95cd5fd441c0fefa06a722fa35b125195d
  86. BIN
      fuzz/bn_div_corpus/4670f98a903e6141c6ac8bbaf42faa7a212117b8
  87. BIN
      fuzz/bn_div_corpus/46832a415e76f040b61a4051e8de9146fb9d3c6b
  88. BIN
      fuzz/bn_div_corpus/46fb66abd9d8625c07fc7f85d4366c9d08dac1f7
  89. BIN
      fuzz/bn_div_corpus/4729d22a7c342203a54001b1660d5010b912a458
  90. BIN
      fuzz/bn_div_corpus/48e8db999905001c6d61a5417b59a59951486849
  91. BIN
      fuzz/bn_div_corpus/492446654a862cb8d584283098ee2a21d6e199cf
  92. BIN
      fuzz/bn_div_corpus/49ce1e6d2cb17e7cbf46a355c8a5a310c553b19f
  93. BIN
      fuzz/bn_div_corpus/4b53e14765892f7490537841d7debd46aaf069a1
  94. BIN
      fuzz/bn_div_corpus/4c91e68e4e2f3f7bb896b1abef2343beadce6951
  95. BIN
      fuzz/bn_div_corpus/4caa6929609f26feea4e77d4cae8e23c01b853e7
  96. BIN
      fuzz/bn_div_corpus/4caf2b43f057c6b961caab6d82d87655e57310b9
  97. BIN
      fuzz/bn_div_corpus/4d18fd8f6c3c6be9b0f0e64784cef2cf888a0cb7
  98. BIN
      fuzz/bn_div_corpus/4ea6b67c227af27fd6e27e1367cbefe621257412
  99. BIN
      fuzz/bn_div_corpus/4f7e6cecbc422bd13e8bc88ebd528e2694320030
  100. BIN
      fuzz/bn_div_corpus/51027da02cd29617a68353e76b8a268e7aba5a39
  101. Some files were not shown because too many files have changed in this diff Show More

@ -8,6 +8,12 @@ macro(fuzzer name)
else()
set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=fuzzer")
endif()
set_target_properties(
${name}
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED YES
COMPILE_FLAGS "-D_BORINGSSL_LIBPKI_")
endmacro()
fuzzer(arm_cpuinfo)
@ -28,3 +34,4 @@ fuzzer(server ssl)
fuzzer(session ssl)
fuzzer(spki)
fuzzer(ssl_ctx_api ssl)
fuzzer(parse_certificate_fuzzer pki)

@ -1,14 +0,0 @@
Processor : ARMv7 Processor rev 0 (v7l)
processor : 0
BogoMIPS : 13.53
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x1
CPU part : 0x04d
CPU revision : 0
Hardware : SAMSUNG M2_ATT
Revision : 0010
Serial : 0000df0c00004d4c

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save