about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-02-21 09:20:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-04-24 14:35:54 +0200
commit6d42a86ad3861d6ec67058eb32f5150e7b734951 (patch)
tree95745a4cb1b4505850f5c19ed03259b1b5a864a1 /sysdeps/x86_64/fpu
parentf3991fec8071dbcf3ec9f13a91c738b66fcd4159 (diff)
downloadglibc-6d42a86ad3861d6ec67058eb32f5150e7b734951.tar.gz
glibc-6d42a86ad3861d6ec67058eb32f5150e7b734951.tar.xz
glibc-6d42a86ad3861d6ec67058eb32f5150e7b734951.zip
gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151)
Before this change, sgetsgent_r did not set errno to ERANGE, but
sgetsgent only check errno, not the return value from sgetsgent_r.
Consequently, sgetsgent did not detect any error, and reported
success to the caller, without initializing the struct sgrp object
whose address was returned.

This commit changes sgetsgent_r to set errno as well.  This avoids
similar issues in applications which only change errno.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 969e9733c7d17edf1e239a73fa172f357561f440)
Diffstat (limited to 'sysdeps/x86_64/fpu')
0 files changed, 0 insertions, 0 deletions