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

Replace sprintf() with snprintf() (#536) #551

Merged
merged 1 commit into from
Sep 29, 2020

Commits on May 8, 2020

  1. Replace sprintf() with snprintf() (google#536)

    sprintf poses two security risks:
    (1) write to memory where it shouldn't
    (2) read from memory where it shouldn't
    
    This commit replaces the use of sprintf() with snprintf()
    which has a size parameter to ensure the problems mentioned
    above won't take place.
    aesophor committed May 8, 2020
    Configuration menu
    Copy the full SHA
    2e87f98 View commit details
    Browse the repository at this point in the history