Skip to content
Commit 949ad78a authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

realpath: Do not copy result on failure (BZ #28815)



On failure, the contents of the resolved buffer passed in by the caller
to realpath are undefined.  Do not copy any partial resolution to the
buffer and also do not test resolved contents in test-canon.c.

Resolves: BZ #28815

Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent b98d0bbf
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