~/talk

Build Safer Modern C++ Application: Mix Assertion, Logging, Unit Testing and Fuzzing with ZeroErr

Talkat CppCon 2024 · on Thursday, 2024-09-19· at 09:00· Cottonwood 2/3, 6700 North Gaylord Rockies Boulevard· [testing, security]
links:none on file
slides:none on file

ZeroErr is a header-only C++11 library that actually combines assertion, logging, unit testing and structure-aware fuzzing into one framework. Assertions log failures (and can throw) so tests can verify which path ran; logging stores structured fields in memory for in-test inspection; a pretty-printer uses overload-ranks and partial specialization to resolve rule priority for compositional types; fuzzing uses domains and seeds and runs with Clang + libFuzzer (examples run 100 iterations). The implementation is practical and extensible and the examples demonstrate the features working end to end.

AI-written summary · about

  1. 0:00Welcome to ZeroErr
  2. 1:04ZeroErr framework concept
  3. 2:06Debugging struggles inspiration
  4. 7:46Unit tests missed critical bug
  5. 10:20Logging benefits over error codes
  6. 13:11Fuzzing needs structured input
  7. 14:38ZeroErr features and design
  8. 16:32Assertion examples in ZeroErr
  9. 18:23Logging API and structured logs
  10. 19:50Reading logs in memory
  11. 21:16Fuzzing API and integration
  12. 26:44Pretty printer details
  13. 35:04Assertion behavior comparison
  14. 37:34Structured logging benefits
  15. 40:08Log storage and iteration
  16. 42:18Fuzzing domains explained
  17. 44:30ZeroErr roadmap
  18. 45:55Q&A
  19. 46:16Assertions debug vs release
  20. 47:25Testing move constructors
  21. 50:41Log-based testing maintainability
  22. 52:05Assertion expression expansion
  23. 53:55Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.