commit | 0c7ce1cee4520eff8f27f5371089fa5102097ad1 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Sun Nov 06 00:46:57 2011 -0400 |
committer | Christoph Hellwig <hch@lst.de> | Thu Nov 10 10:55:32 2011 +0000 |
tree | ebe2a30a912f650161e5d48da9a1b85c78e5f66c | |
parent | 710c8e7e667ad9edad98272963e05fd9f7edf5f9 [diff] |
path: fix 1 byte overflow with empty lists If pap->pa_cnt is 0, then the local buffer is allocated as 1 byte, but the code then writes two bytes to it '/' and '\0'. Reviewed-by: Bill Kendall <wkendall@sgi.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Christoph Hellwig <hch@lst.de>