]> 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 09:42:28 +0000 (11:42 +0200)
commita9d6150d12b368820a98cb26ec0d9f76fa4f0905
treed2b07a406b610c98d38410f13a75b3ac2eb0b8c4
parent63038035f30f89f3c58e2a663daeb2a4d6d8f665
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