Skip to content

Commit

Permalink
Inject a memory problem....let's see which checks find the problem....
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Oct 11, 2024
1 parent c53ce9e commit 9dba9d2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ constexpr parser option_parser(
);

void parse(std::string&& code, options_type& result) {

//inject a memory problem
char buffer[100];
buffer[100] = 0;

std::stringstream error_buffer;
auto res = option_parser.parse(
parse_options{}.set_skip_whitespace(false),
Expand Down

0 comments on commit 9dba9d2

Please sign in to comment.