[PATCH] path: fix 1 byte overflow with empty lists

Bill Kendall wkendall at sgi.com
Mon Nov 7 09:14:34 CST 2011


On 11/05/2011 11:46 PM, Mike Frysinger wrote:
> 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'.
>
> Signed-off-by: Mike Frysinger<vapier at gentoo.org>

Looks good,

Reviewed-by: Bill Kendall <wkendall at sgi.com>




More information about the xfs mailing list