bugfix/BUG-1_empty_key_in_config_hangs_the_program #1

Merged
martin merged 4 commits from bugfix/BUG-1_empty_key_in_config_hangs_the_program into main 2026-08-26 12:46:02 +00:00
Owner
No description provided.
martin added 4 commits 2026-08-26 12:45:58 +00:00
A line such as "=z" parsed into the pair ("", "z"). An empty value1
matches at every position and consumes nothing, so the scan in
replace_line never advanced and the program looped forever, printing
nothing and growing its output buffer until it was killed.

Reject the entry while parsing, reporting the offending line the same
way as a line with no "=" at all, and document the termination
invariant the loop depends on.
martin merged commit 688b3ca31b into main 2026-08-26 12:46:02 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: martin/Technical-Assignment-CQG-Broadridge#1
No description provided.