Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2017 20:54:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-security@FreeBSD.org
Subject:   [Bug 219154] [PATCH] buffer overflows in realpath(3)
Message-ID:  <bug-219154-5710-1XA7CuP0fZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219154-5710@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219154-5710@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219154

--- Comment #3 from Jan Kokem=C3=BCller <jan.kokemueller@gmail.com> ---
I've added some tests to a local copy of
'contrib/netbsd-tests/lib/libc/gen/t_realpath.c' [1].
Would a new file in 'lib/libc/tests/gen' be a better place?

realpath_buffer_overflow:
This tests for the buffer overflow of the "left" array. But this test only
fails with ASAN enabled ("-fsanitize=3Daddress").

realpath_empty_symlink:
This tests for empty symlink behavior. Currently, "/tmp/empty_symlink/aaa"
resolves to "/tmp/aaa", but the right behavior is to fail and return ENOENT.
When ASAN is enabled this test crashes.


[1]:
https://github.com/jiixyj/realpath-fuzzer/commit/eb1c51adbdc2fe56b216f22b8f=
46cffd6a032c67

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219154-5710-1XA7CuP0fZ>