]> 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)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Sep 2007 11:33:52 +0000 (13:33 +0200)
commitbd86059cbe5607ac61d339b8b6360c01d4722b1b
treec64da3f5d16eb1a61626725dd6c0a3896e661f6a
parent3c3479b5541cd61d817d3cddf33fa5e1e6491b95
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