aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpp
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2022-01-24 21:36:41 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2022-01-24 21:44:54 +0530
commitd084965adc7baa8ea804427cccf973cea556d697 (patch)
treedc6810eaf5035d648bd3d021177044db174b1eed /scripts/cpp
parent472e799a5f2102bc0c3206dbd5a801765fceb39c (diff)
downloadglibc-d084965adc7baa8ea804427cccf973cea556d697.tar.xz
glibc-d084965adc7baa8ea804427cccf973cea556d697.zip
realpath: Avoid overwriting preexisting error (CVE-2021-3998)
Set errno and failure for paths that are too long only if no other error occurred earlier. Related: BZ #28770 Reviewed-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org> (cherry picked from commit 84d2d0fe20bdf94feed82b21b4d7d136db471f03)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions