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

Prevent future potential UB in unix wrapper for getpwuid() #104

Merged
merged 2 commits into from
Mar 9, 2024

Commits on Mar 9, 2024

  1. getpwuid: reduce scope of _passwd variable

    The `_passwd` variable is only used in one of the code blocks, so
    let's declare it in that block.
    martinvonz committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    e926f42 View commit details
    Browse the repository at this point in the history
  2. getpwuid: don't return uninitialized data on unexpected OS

    This commit makes it so the function doesn't compile on unexpected OSs
    instead of returning uninitialized data.
    martinvonz committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    f617aee View commit details
    Browse the repository at this point in the history