Feat: add 3 instances for botan running in Ubuntu 20.04

#4
projects/botan/arvo_10628/crash.log ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ======================= INFO =========================
2
+ This binary is built for AFL-fuzz.
3
+ To run the target function on individual input(s) execute this:
4
+ /out/mode_padding < INPUT_FILE
5
+ or
6
+ /out/mode_padding INPUT_FILE1 [INPUT_FILE2 ... ]
7
+ To fuzz with afl-fuzz execute this:
8
+ afl-fuzz [afl-flags] /out/mode_padding [-N]
9
+ afl-fuzz will run N iterations before re-spawning the process (default: 1000)
10
+ ======================================================
11
+ =================================================================
12
+ ==1045==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000000f at pc 0x0000005307db bp 0x7ffc2f8729a0 sp 0x7ffc2f872998
13
+ READ of size 1 at 0x60200000000f thread T0
14
+ SCARINESS: 12 (1-byte-read-heap-buffer-overflow)
15
+ Reading 3 bytes from /tmp/poc
16
+ #0 0x5307da in ref_oneandzero_unpad(unsigned char const*, unsigned long) /src/botan/./src/fuzzer/mode_padding.cpp:63:10
17
+ #1 0x52ff08 in fuzz(unsigned char const*, unsigned long) /src/botan/./src/fuzzer/mode_padding.cpp:139:34
18
+ #2 0x52fd74 in LLVMFuzzerTestOneInput /src/botan/./src/fuzzer/fuzzers.h:39:7
19
+ #3 0x55bb11 in ExecuteFilesOnyByOne(int, char**) /src/libfuzzer/afl/afl_driver.cpp:301:5
20
+ #4 0x55c0be in main /src/libfuzzer/afl/afl_driver.cpp:339:12
21
+ #5 0x75285f1c683f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
22
+ #6 0x41cab8 in _start (/out/mode_padding+0x41cab8)
23
+
24
+ DEDUP_TOKEN: ref_oneandzero_unpad(unsigned char const*, unsigned long)--fuzz(unsigned char const*, unsigned long)--LLVMFuzzerTestOneInput
25
+ 0x60200000000f is located 1 bytes to the left of 3-byte region [0x602000000010,0x602000000013)
26
+ allocated by thread T0 here:
27
+ #0 0x52b838 in operator new(unsigned long) /src/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:106
28
+ #1 0x55ba18 in __libcpp_allocate /usr/local/bin/../include/c++/v1/new:253:10
29
+ #2 0x55ba18 in allocate /usr/local/bin/../include/c++/v1/memory:1800
30
+ #3 0x55ba18 in allocate /usr/local/bin/../include/c++/v1/memory:1549
31
+ #4 0x55ba18 in __vallocate /usr/local/bin/../include/c++/v1/vector:972
32
+ #5 0x55ba18 in vector /usr/local/bin/../include/c++/v1/vector:1115
33
+ #6 0x55ba18 in ExecuteFilesOnyByOne(int, char**) /src/libfuzzer/afl/afl_driver.cpp:298
34
+ #7 0x55c0be in main /src/libfuzzer/afl/afl_driver.cpp:339:12
35
+ #8 0x75285f1c683f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
36
+
37
+ DEDUP_TOKEN: operator new(unsigned long)--__libcpp_allocate--allocate
38
+ SUMMARY: AddressSanitizer: heap-buffer-overflow /src/botan/./src/fuzzer/mode_padding.cpp:63:10 in ref_oneandzero_unpad(unsigned char const*, unsigned long)
39
+ Shadow bytes around the buggy address:
40
+ 0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
41
+ 0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
42
+ 0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
43
+ 0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
44
+ 0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
45
+ =>0x0c047fff8000: fa[fa]03 fa fa fa fa fa fa fa fa fa fa fa fa fa
46
+ 0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
47
+ 0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
48
+ 0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
49
+ 0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
50
+ 0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
51
+ Shadow byte legend (one shadow byte represents 8 application bytes):
52
+ Addressable: 00
53
+ Partially addressable: 01 02 03 04 05 06 07
54
+ Heap left redzone: fa
55
+ Freed heap region: fd
56
+ Stack left redzone: f1
57
+ Stack mid redzone: f2
58
+ Stack right redzone: f3
59
+ Stack after return: f5
60
+ Stack use after scope: f8
61
+ Global redzone: f9
62
+ Global init order: f6
63
+ Poisoned by user: f7
64
+ Container overflow: fc
65
+ Array cookie: ac
66
+ Intra object redzone: bb
67
+ ASan internal: fe
68
+ Left alloca redzone: ca
69
+ Right alloca redzone: cb
70
+ Shadow gap: cc
71
+ ==1045==ABORTING
projects/botan/arvo_10628/poc.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:709e80c88487a2411e1ee4dfb9f22a861492d20c4765150c0c794abd70f8147c
3
+ size 3
projects/botan/arvo_10628/src.tgz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a730dd4becd9a170729e56f2b1496c7cb4276e5a20209c6cf2da346842c33c73
3
+ size 11568745
projects/botan/arvo_6581/crash.log ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: Seed: 722574665
2
+ INFO: Loaded 1 modules (26379 inline 8-bit counters): 26379 [0xd9ede8, 0xda54f3),
3
+ INFO: Loaded 1 PC tables (26379 PCs): 26379 [0xa40b10,0xaa7bc0),
4
+ /out/pkcs8: Running 1 inputs 1 time(s) each.
5
+ Running: /tmp/poc
6
+ =================================================================
7
+ ==943==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000008f98 at pc 0x00000084f4da bp 0x7ffdc38081b0 sp 0x7ffdc38081a8
8
+ READ of size 8 at 0x603000008f98 thread T0
9
+ SCARINESS: 23 (8-byte-read-heap-buffer-overflow)
10
+ #0 0x84f4d9 in Botan::bigint_monty_redc(unsigned long*, unsigned long const*, unsigned long, unsigned long, unsigned long*, unsigned long) /src/botan/src/lib/math/mp/mp_monty.cpp:62:17
11
+ #1 0x813e7b in Botan::(anonymous namespace)::CurveGFp_Montgomery::curve_mul(Botan::BigInt&, Botan::BigInt const&, Botan::BigInt const&, std::__1::vector<unsigned long, Botan::secure_allocator<unsigned long> >&) const /src/botan/src/lib/pubkey/ec_group/curve_gfp.cpp:92:4
12
+ #2 0x8138b9 in Botan::(anonymous namespace)::CurveGFp_Montgomery::to_curve_rep(Botan::BigInt&, std::__1::vector<unsigned long, Botan::secure_allocator<unsigned long> >&) const /src/botan/src/lib/pubkey/ec_group/curve_gfp.cpp:67:4
13
+ #3 0x6bf4ce in Botan::PointGFp::PointGFp(Botan::CurveGFp const&, Botan::BigInt const&, Botan::BigInt const&) /src/botan/src/lib/pubkey/ec_group/point_gfp.cpp:42:12
14
+ #4 0x6baedc in Botan::EC_Group_Data::EC_Group_Data(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:39:10
15
+ #5 0x6bac4b in __compressed_pair_elem<const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &, 0, 1, 2, 3, 4, 5, 6, 7> /usr/local/bin/../include/c++/v1/memory:2151:9
16
+ #6 0x6bac4b in __compressed_pair<std::__1::allocator<Botan::EC_Group_Data> &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &> /usr/local/bin/../include/c++/v1/memory:2253
17
+ #7 0x6bac4b in __shared_ptr_emplace<const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &> /usr/local/bin/../include/c++/v1/memory:3666
18
+ #8 0x6bac4b in std::__1::shared_ptr<Botan::EC_Group_Data> std::__1::shared_ptr<Botan::EC_Group_Data>::make_shared<Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&>(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /usr/local/bin/../include/c++/v1/memory:4325
19
+ #9 0x6ba632 in make_shared<Botan::EC_Group_Data, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &> /usr/local/bin/../include/c++/v1/memory:4704:12
20
+ #10 0x6ba632 in Botan::EC_Group_Data_Map::add_curve(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:202
21
+ #11 0x6b8d74 in Botan::EC_Group_Data_Map::lookup_or_create(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:187:17
22
+ #12 0x6b3ffe in Botan::EC_Group::BER_decode_EC_group(unsigned char const*, unsigned long) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:291:30
23
+ #13 0x6b5e06 in Botan::EC_Group::EC_Group(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:366:13
24
+ #14 0x6cabb6 in Botan::EC_PrivateKey::EC_PrivateKey(Botan::AlgorithmIdentifier const&, std::__1::vector<unsigned char, Botan::secure_allocator<unsigned char> > const&, bool) /src/botan/src/lib/pubkey/ecc_key/ecc_key.cpp:152:22
25
+ #15 0x59250b in Botan::ECDSA_PrivateKey::ECDSA_PrivateKey(Botan::AlgorithmIdentifier const&, std::__1::vector<unsigned char, Botan::secure_allocator<unsigned char> > const&) /src/botan/build/include/botan/ecdsa.h:75:10
26
+ #16 0x58db21 in Botan::load_private_key(Botan::AlgorithmIdentifier const&, std::__1::vector<unsigned char, Botan::secure_allocator<unsigned char> > const&) /src/botan/src/lib/pubkey/pk_algs.cpp:189:47
27
+ #17 0x52e68a in Botan::PKCS8::(anonymous namespace)::load_key(Botan::DataSource&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>, bool) /src/botan/src/lib/pubkey/pkcs8.cpp:333:11
28
+ #18 0x52ee38 in Botan::PKCS8::load_key(Botan::DataSource&) /src/botan/src/lib/pubkey/pkcs8.cpp:365:11
29
+ #19 0x52f62d in Botan::PKCS8::load_key(Botan::DataSource&, Botan::RandomNumberGenerator&) /src/botan/src/lib/pubkey/pkcs8.cpp:406:11
30
+ #20 0x52a9a9 in fuzz(unsigned char const*, unsigned long) /src/botan/./src/fuzzer/pkcs8.cpp:18:47
31
+ #21 0x52a88c in LLVMFuzzerTestOneInput /src/botan/./src/fuzzer/fuzzers.h:39:7
32
+ #22 0x87b4b0 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:517:13
33
+ #23 0x859309 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6
34
+ #24 0x864b3a in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:703:9
35
+ #25 0x8589ac in main /src/libfuzzer/FuzzerMain.cpp:20:10
36
+ #26 0x7a4aa264883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
37
+ #27 0x426538 in _start (/out/pkcs8+0x426538)
38
+
39
+ DEDUP_TOKEN: Botan::bigint_monty_redc(unsigned long*, unsigned long const*, unsigned long, unsigned long, unsigned long*, unsigned long)--Botan::(anonymous namespace)::CurveGFp_Montgomery::curve_mul(Botan::BigInt&, Botan::BigInt const&, Botan::BigInt const&, std::__1::vector<unsigned long, Botan::secure_allocator<unsigned long> >&) const--Botan::(anonymous namespace)::CurveGFp_Montgomery::to_curve_rep(Botan::BigInt&, std::__1::vector<unsigned long, Botan::secure_allocator<unsigned long> >&) const
40
+ 0x603000008f98 is located 0 bytes to the right of 24-byte region [0x603000008f80,0x603000008f98)
41
+ allocated by thread T0 here:
42
+ #0 0x4eee30 in calloc /src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:97
43
+ #1 0x541342 in Botan::allocate_memory(unsigned long, unsigned long) /src/botan/src/lib/utils/mem_ops.cpp:23:16
44
+ #2 0x575ce8 in allocate /usr/local/bin/../include/c++/v1/memory:1547:21
45
+ #3 0x575ce8 in std::__1::vector<unsigned long, Botan::secure_allocator<unsigned long> >::allocate(unsigned long) /usr/local/bin/../include/c++/v1/vector:937
46
+ #4 0x57b90f in _ZNSt3__16vectorImN5Botan16secure_allocatorImEEE6assignIPmEENS_9enable_ifIXaasr21__is_forward_iteratorIT_EE5valuesr16is_constructibleImNS_15iterator_traitsIS8_E9referenceEEE5valueEvE4typeES8_S8_ /usr/local/bin/../include/c++/v1/vector:1414:9
47
+ #5 0x578749 in operator= /usr/local/bin/../include/c++/v1/vector:1359:9
48
+ #6 0x578749 in Botan::BigInt::BigInt(Botan::BigInt const&) /src/botan/src/lib/math/bigint/bigint.cpp:50
49
+ #7 0x6bf38c in Botan::PointGFp::PointGFp(Botan::CurveGFp const&, Botan::BigInt const&, Botan::BigInt const&) /src/botan/src/lib/pubkey/ec_group/point_gfp.cpp:32:4
50
+ #8 0x6baedc in Botan::EC_Group_Data::EC_Group_Data(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:39:10
51
+ #9 0x6bac4b in __compressed_pair_elem<const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &, 0, 1, 2, 3, 4, 5, 6, 7> /usr/local/bin/../include/c++/v1/memory:2151:9
52
+ #10 0x6bac4b in __compressed_pair<std::__1::allocator<Botan::EC_Group_Data> &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &> /usr/local/bin/../include/c++/v1/memory:2253
53
+ #11 0x6bac4b in __shared_ptr_emplace<const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &> /usr/local/bin/../include/c++/v1/memory:3666
54
+ #12 0x6bac4b in std::__1::shared_ptr<Botan::EC_Group_Data> std::__1::shared_ptr<Botan::EC_Group_Data>::make_shared<Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&>(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /usr/local/bin/../include/c++/v1/memory:4325
55
+ #13 0x6ba632 in make_shared<Botan::EC_Group_Data, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::BigInt &, const Botan::OID &> /usr/local/bin/../include/c++/v1/memory:4704:12
56
+ #14 0x6ba632 in Botan::EC_Group_Data_Map::add_curve(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:202
57
+ #15 0x6b8d74 in Botan::EC_Group_Data_Map::lookup_or_create(Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::BigInt const&, Botan::OID const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:187:17
58
+ #16 0x6b3ffe in Botan::EC_Group::BER_decode_EC_group(unsigned char const*, unsigned long) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:291:30
59
+ #17 0x6b5e06 in Botan::EC_Group::EC_Group(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&) /src/botan/src/lib/pubkey/ec_group/ec_group.cpp:366:13
60
+ #18 0x6cabb6 in Botan::EC_PrivateKey::EC_PrivateKey(Botan::AlgorithmIdentifier const&, std::__1::vector<unsigned char, Botan::secure_allocator<unsigned char> > const&, bool) /src/botan/src/lib/pubkey/ecc_key/ecc_key.cpp:152:22
61
+ #19 0x59250b in Botan::ECDSA_PrivateKey::ECDSA_PrivateKey(Botan::AlgorithmIdentifier const&, std::__1::vector<unsigned char, Botan::secure_allocator<unsigned char> > const&) /src/botan/build/include/botan/ecdsa.h:75:10
62
+ #20 0x58db21 in Botan::load_private_key(Botan::AlgorithmIdentifier const&, std::__1::vector<unsigned char, Botan::secure_allocator<unsigned char> > const&) /src/botan/src/lib/pubkey/pk_algs.cpp:189:47
63
+ #21 0x52e68a in Botan::PKCS8::(anonymous namespace)::load_key(Botan::DataSource&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>, bool) /src/botan/src/lib/pubkey/pkcs8.cpp:333:11
64
+ #22 0x52ee38 in Botan::PKCS8::load_key(Botan::DataSource&) /src/botan/src/lib/pubkey/pkcs8.cpp:365:11
65
+ #23 0x52f62d in Botan::PKCS8::load_key(Botan::DataSource&, Botan::RandomNumberGenerator&) /src/botan/src/lib/pubkey/pkcs8.cpp:406:11
66
+ #24 0x52a9a9 in fuzz(unsigned char const*, unsigned long) /src/botan/./src/fuzzer/pkcs8.cpp:18:47
67
+ #25 0x52a88c in LLVMFuzzerTestOneInput /src/botan/./src/fuzzer/fuzzers.h:39:7
68
+ #26 0x87b4b0 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:517:13
69
+ #27 0x859309 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6
70
+ #28 0x864b3a in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:703:9
71
+ #29 0x8589ac in main /src/libfuzzer/FuzzerMain.cpp:20:10
72
+ #30 0x7a4aa264883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
73
+
74
+ DEDUP_TOKEN: calloc--Botan::allocate_memory(unsigned long, unsigned long)--allocate
75
+ SUMMARY: AddressSanitizer: heap-buffer-overflow /src/botan/src/lib/math/mp/mp_monty.cpp:62:17 in Botan::bigint_monty_redc(unsigned long*, unsigned long const*, unsigned long, unsigned long, unsigned long*, unsigned long)
76
+ Shadow bytes around the buggy address:
77
+ 0x0c067fff91a0: fa fa fd fd fd fd fa fa fd fd fd fd fa fa fd fd
78
+ 0x0c067fff91b0: fd fa fa fa fd fd fd fa fa fa fd fd fd fd fa fa
79
+ 0x0c067fff91c0: fd fd fd fa fa fa fd fd fd fd fa fa fd fd fd fd
80
+ 0x0c067fff91d0: fa fa fd fd fd fd fa fa 00 00 00 fa fa fa fd fd
81
+ 0x0c067fff91e0: fd fd fa fa fd fd fd fd fa fa 00 00 00 00 fa fa
82
+ =>0x0c067fff91f0: 00 00 00[fa]fa fa 00 00 00 fa fa fa fa fa fa fa
83
+ 0x0c067fff9200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
84
+ 0x0c067fff9210: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
85
+ 0x0c067fff9220: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
86
+ 0x0c067fff9230: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
87
+ 0x0c067fff9240: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
88
+ Shadow byte legend (one shadow byte represents 8 application bytes):
89
+ Addressable: 00
90
+ Partially addressable: 01 02 03 04 05 06 07
91
+ Heap left redzone: fa
92
+ Freed heap region: fd
93
+ Stack left redzone: f1
94
+ Stack mid redzone: f2
95
+ Stack right redzone: f3
96
+ Stack after return: f5
97
+ Stack use after scope: f8
98
+ Global redzone: f9
99
+ Global init order: f6
100
+ Poisoned by user: f7
101
+ Container overflow: fc
102
+ Array cookie: ac
103
+ Intra object redzone: bb
104
+ ASan internal: fe
105
+ Left alloca redzone: ca
106
+ Right alloca redzone: cb
107
+ ==943==ABORTING
projects/botan/arvo_6581/poc.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c7772f831149c76afcb9243d60b179300cca571b1715b18351a524710bd092e
3
+ size 344
projects/botan/arvo_6581/src.tgz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74b5e2d0588a7519e8d9be6f08d2a16e1bc1422aca577db534bbeadbe4923454
3
+ size 10988401
projects/botan/arvo_6626/crash.log ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: Seed: 688933166
2
+ INFO: Loaded 1 modules (2966 inline 8-bit counters): 2966 [0xa37d68, 0xa388fe),
3
+ INFO: Loaded 1 PC tables (2966 PCs): 2966 [0x7bf850,0x7cb1b0),
4
+ /out/invert: Running 1 inputs 1 time(s) each.
5
+ Running: /tmp/poc
6
+ ==944==WARNING: MemorySanitizer: use-of-uninitialized-value
7
+ #0 0x4c2700 in Botan::word_add(unsigned long, unsigned long, unsigned long*) /src/botan/build/include/botan/internal/mp_asmi.h:119:4
8
+ #1 0x4bcb4d in Botan::bigint_cnd_abs(unsigned long, unsigned long*, unsigned long) /src/botan/src/lib/math/mp/mp_core.cpp:102:22
9
+ #2 0x4cba46 in Botan::ct_inverse_mod_odd_modulus(Botan::BigInt const&, Botan::BigInt const&) /src/botan/src/lib/math/numbertheory/numthry.cpp:240:7
10
+ #3 0x49db32 in fuzz(unsigned char const*, unsigned long) /src/botan/./src/fuzzer/invert.cpp:25:29
11
+ #4 0x49d5b0 in LLVMFuzzerTestOneInput /src/botan/./src/fuzzer/fuzzers.h:39:7
12
+ #5 0x5698f5 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:517:13
13
+ #6 0x5281b2 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6
14
+ #7 0x53a5bf in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:703:9
15
+ #8 0x5272f1 in main /src/libfuzzer/FuzzerMain.cpp:20:10
16
+ #9 0x7ec8a889483f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
17
+ #10 0x41eaf8 in _start (/out/invert+0x41eaf8)
18
+
19
+ DEDUP_TOKEN: Botan::word_add(unsigned long, unsigned long, unsigned long*)--Botan::bigint_cnd_abs(unsigned long, unsigned long*, unsigned long)--Botan::ct_inverse_mod_odd_modulus(Botan::BigInt const&, Botan::BigInt const&)
20
+ Uninitialized value was stored to memory at
21
+ #0 0x4bc519 in Botan::bigint_cnd_sub(unsigned long, unsigned long*, unsigned long const*, unsigned long) /src/botan/src/lib/math/mp/mp_core.cpp:83:17
22
+ #1 0x4cb955 in Botan::ct_inverse_mod_odd_modulus(Botan::BigInt const&, Botan::BigInt const&) /src/botan/src/lib/math/numbertheory/numthry.cpp:236:24
23
+ #2 0x49db32 in fuzz(unsigned char const*, unsigned long) /src/botan/./src/fuzzer/invert.cpp:25:29
24
+ #3 0x49d5b0 in LLVMFuzzerTestOneInput /src/botan/./src/fuzzer/fuzzers.h:39:7
25
+ #4 0x5698f5 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:517:13
26
+ #5 0x5281b2 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6
27
+ #6 0x53a5bf in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:703:9
28
+ #7 0x5272f1 in main /src/libfuzzer/FuzzerMain.cpp:20:10
29
+ #8 0x7ec8a889483f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
30
+
31
+ DEDUP_TOKEN: Botan::bigint_cnd_sub(unsigned long, unsigned long*, unsigned long const*, unsigned long)--Botan::ct_inverse_mod_odd_modulus(Botan::BigInt const&, Botan::BigInt const&)--fuzz(unsigned char const*, unsigned long)
32
+ Uninitialized value was created by an allocation of 'z' in the stack frame of function '_ZN5Botan14bigint_cnd_subEmPmPKmm'
33
+ #0 0x4bc160 in Botan::bigint_cnd_sub(unsigned long, unsigned long*, unsigned long const*, unsigned long) /src/botan/src/lib/math/mp/mp_core.cpp:70
34
+
35
+ DEDUP_TOKEN: Botan::bigint_cnd_sub(unsigned long, unsigned long*, unsigned long const*, unsigned long)
36
+ SUMMARY: MemorySanitizer: use-of-uninitialized-value /src/botan/build/include/botan/internal/mp_asmi.h:119:4 in Botan::word_add(unsigned long, unsigned long, unsigned long*)
37
+ Unique heap origins: 57
38
+ Stack depot allocated bytes: 4608
39
+ Unique origin histories: 8
40
+ History depot allocated bytes: 192
41
+ Exiting
projects/botan/arvo_6626/poc.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9997ce214521cab53adc8adfbbb7ad6cd4cf2d7c69754af3e80f692ed8b56978
3
+ size 114
projects/botan/arvo_6626/src.tgz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f725be39d63fc39cde37cef71463e81cc0d23afde42965bc6d48de67414e4e3
3
+ size 10992110