Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util.c: assert that format strings are not empty #22378

Merged
merged 1 commit into from
Jul 5, 2024

Commits on Jul 4, 2024

  1. util.c: assert that format strings are not empty

    If any of these format strings are empty, things can go very wrong at
    runtime, from garbage output to segfaults (e.g. see Perl#22375).
    
    This is a static check, so it could be placed in any source file. I
    chose util.c because according to the comment at the top, it is the home
    of "any stuff that people couldn't think of a better place for".
    mauke committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    6a17ca3 View commit details
    Browse the repository at this point in the history