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

Fix #1237, avoid calling memchr() with unknown size buffer #1238

Merged
merged 1 commit into from
Mar 25, 2022

Commits on Mar 25, 2022

  1. Fix nasa#1237, avoid calling memchr() with unknown size buffer

    In some systems, passing a large size value to memchr() causes it to
    return NULL, even if the char is guaranteed to be found within the
    actual valid buffer memory.
    
    This modifies the string buffer comparison function to actively
    check for this sentinel value and use "strlen()" instead.
    jphickey committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    ea791ac View commit details
    Browse the repository at this point in the history