• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

randombit / botan / 20579846577

29 Dec 2025 06:24PM UTC coverage: 90.415% (+0.2%) from 90.243%
20579846577

push

github

web-flow
Merge pull request #5167 from randombit/jack/src-size-reductions

Changes to reduce unnecessary inclusions

101523 of 112285 relevant lines covered (90.42%)

12817276.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.33
/src/fuzzer/tls_13_handshake_layer.cpp
1
/*
2
* (C) 2022 Jack Lloyd
3
* (C) 2022 René Meusel - neXenio GmbH
4
* (C) 2022 Lukas Zeller - neXenio GmbH
5
*
6
* Botan is released under the Simplified BSD License (see license.txt)
7
*/
8

9
#include "fuzzers.h"
10

11
#include <botan/tls_policy.h>
12
#include <botan/internal/tls_handshake_layer_13.h>
13
#include <botan/internal/tls_transcript_hash_13.h>
14

15
namespace {
16

17
Botan::TLS::Handshake_Layer prepare(std::span<const uint8_t> data) {
71✔
18
   Botan::TLS::Handshake_Layer hl(Botan::TLS::Connection_Side::Client);
71✔
19
   hl.copy_data(data);
71✔
20
   return hl;
71✔
21
}
×
22

23
}  // namespace
24

25
void fuzz(std::span<const uint8_t> in) {
41✔
26
   static const Botan::TLS::Default_Policy policy;
41✔
27

28
   try {
41✔
29
      auto hl1 = prepare(in);
41✔
30
      Botan::TLS::Transcript_Hash_State transcript_hash("SHA-256");
82✔
31
      while(hl1.next_message(policy, transcript_hash).has_value()) {};
108✔
32

33
      auto hl2 = prepare(in);
30✔
34
      while(hl2.next_post_handshake_message(policy).has_value()) {};
30✔
35
   } catch(Botan::Exception& e) {}
82✔
36
}
41✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc