Public bug reported:

While running valgrind on gparted I noticed a buffer overflow reported
in getmntent().  I wrote a simple reproducer and verified it is a bug in
libc.  valgrind shows that it touches 1 byte before the start of the
buffer it allocated.

Attaching the reproducer and a copy of my /etc/fstab that it is running
on when it does this.  When run on /proc/mounts, the bug does not occur.

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "demo.c"
   https://bugs.launchpad.net/bugs/1525578/+attachment/4533843/+files/demo.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1525578

Title:
  buffer overflow in getmntent

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1525578/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to