[Bug 16318] New: checking the value of errno without resetting it first
bugzilla at busybox.net
bugzilla at busybox.net
Tue Mar 4 23:04:26 UTC 2025
https://bugs.busybox.net/show_bug.cgi?id=16318
Bug ID: 16318
Summary: checking the value of errno without resetting it first
Product: Busybox
Version: 1.37.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: bmburstein at gmail.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
Created attachment 9823
--> https://bugs.busybox.net/attachment.cgi?id=9823&action=edit
patch to fix
In the file libpwdgrp/pwd_grp.c the function `massage_data_for_r_func` returns
`errno` to indicate success/failure, but does not ensure that errno is set to
zero beforehand. This can cause a situation where the function succeeded, but
it returns a non-zero value (indicating a failure). This happens if errno was
not zero when entering the function.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list