Bug#509167: mdadm: check asprintf() return codes
Neil Brown
neilb at suse.de
Sun Feb 1 23:55:36 UTC 2009
On Thursday January 8, kirkland at canonical.com wrote:
> Neil-
>
> One more follow-up on this patch...
>
> I actually think that the code in the inline function should :
>
> - ret = asprintf(strp, fmt, ap);
> + ret = vasprintf(strp, fmt, ap);
>
> Otherwise, we might fill ap into the format string, and have bad things
> happen...
>
> Cheers,
> :-Dustin
Yes, of course. Thanks.
I've applied this now.
NeilBrown
More information about the pkg-mdadm-devel
mailing list