Bug#509167: mdadm: check asprintf() return codes

Dustin Kirkland kirkland at canonical.com
Thu Jan 8 16:00:51 UTC 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20090108/68a7b657/attachment.pgp 


More information about the pkg-mdadm-devel mailing list