<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Early boot vsnprintf/vasprintf segfault"
href="https://bugs.freedesktop.org/show_bug.cgi?id=55213#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Early boot vsnprintf/vasprintf segfault"
href="https://bugs.freedesktop.org/show_bug.cgi?id=55213">bug 55213</a>
from <span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span></b>
<pre>I think that the analysis is correct. I don't like the posted patch though. It
is intrusive, and the formatting is done early, and the message might be
skipped afterwards.
I have a patch in the works, will post soon, taking a different approach:
va_copy(aq, ap)
vasprintf(aq, ...)
update original ap using parse_printf_format
continue with va_arg(ap, ...)
The downsides are: slight ugliness of having to update ap manually, C99
requirement for parse_printf_format.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>