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 getpwuid_r error handling #1546

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

aconz2
Copy link
Contributor

@aconz2 aconz2 commented Sep 3, 2024

getpwuid_r returns the error directly, not -1. In a situation with no /etc/passwd for example, ret is ENOFILE (2) and so the branch is never taken, resulting in a runaway realloc loop

Closes: #1536

getpwuid_r returns the error directly, not -1. In a situation with
no /etc/passwd for example, ret is ENOFILE (2) and so the branch is
never taken, resulting in a runaway realloc loop

Signed-off-by: Andrew Consroe <[email protected]>
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

Copy link

podman system tests failed. @containers/packit-build please check.

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@giuseppe giuseppe merged commit 7d73c79 into containers:main Sep 4, 2024
32 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runaway realloc in getsubidrange
2 participants