[Bug 219154] [PATCH] buffer overflows in realpath(3)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 18 13:50:52 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219154

--- Comment #8 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kib
Date: Thu May 18 13:49:53 UTC 2017
New revision: 318450
URL: https://svnweb.freebsd.org/changeset/base/318450

Log:
  Add tests for some cases in r318298.

  The first test triggers the out of bounds read of the 'left' array. It
  only fails when realpath.c is compiled with '-fsanitize=address'.

  The other test checks for ENOENT when running into an empty
  symlink. This matches NetBSD's realpath(3) semantics. Previously,
  empty symlinks were treated like ".".

  Submitted by: Jan Kokem??ller <jan.kokemueller at gmail.com>
  PR:   219154
  MFC after:    2 weeks

Changes:
  head/lib/libc/tests/gen/Makefile
  head/lib/libc/tests/gen/realpath2_test.c

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


More information about the freebsd-security mailing list