Search⌘ K
AI Features

Exercise: The Flaky Data Parser

Explore how to harden a legacy C++ data parser by writing tests that trigger out-of-bounds errors, adding assertions for bounds safety, and configuring debug builds with compiler symbols. This lesson equips you to detect and debug segmentation faults effectively using Catch2 tests and Makefile build targets.

Problem statement

You have inherited a legacy function parseData ...