Skip to content
Commit 84d2d0fe authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

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: default avatarAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent d8d94863
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment