]> err.no Git - util-linux/commit
mount: chain of symlinks to fstab causes use of pointer after free
authorNorbert Buchmuller <norbi@nix.hu>
Sun, 2 Sep 2007 20:08:53 +0000 (14:08 -0600)
committerLaMont Jones <lamont@debian.org>
Sun, 2 Sep 2007 20:08:53 +0000 (14:08 -0600)
commit0af5fc7a41ac2ca706a55330ecba8b9840b54ad3
treef349a67bb050b5e4a84df89a65427427197ed07e
parentbd6f2eaf635fdba43aa30d06d955505e8c969538
mount: chain of symlinks to fstab causes use of pointer after free

Looking at the source in 'mount/realpath.c' we find that when dealing with
the second or later symlink in the chain, a memory block was free()d before
copying its contents to a newly allocated block.
mount/realpath.c