<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello Maxim,<div>Thank you.</div><div><br></div><div><span style="font-size: 12pt;">> The "%u" format specification is invalid.</span></div><div><span style="font-size: 12pt;">Nginx ignore %u.</span></div><div><span style="font-size: 12pt;"><br></span></div><div>b->last = ngx_sprintf(b->last, "{\"uid\": \"%u\", \"full_name\": \"%u\"}", 0,0);</div><div>results:</div><div>{"uid": "", "full_name": ""}</div><div><br></div><div><span style="font-size: 12pt;">Best regards,</span></div><div><br></div><div>Ranier</div><div><br></div><div><div>> Date: Wed, 8 Jun 2016 18:32:41 +0300<br>> From: mdounin@mdounin.ru<br>> To: nginx-devel@nginx.org<br>> Subject: Re: Nginx bug?<br>> <br>> Hello!<br>> <br>> On Tue, Jun 07, 2016 at 08:15:09PM +0000, Ranier VF wrote:<br>> <br>> > Hi,<br>> > nginx-1.10, windows build.<br>> > msvc 2010<br>> > <br>> > where full_name is u_char [64]<br>> > b->last = ngx_sprintf(b->last, "{\"uid\": \"%u\", \"full_name\": \"%s\"}", uid, full_name);<br>> > <br>> > This crash in ngx_string.c (line 257)<br>> > case 's':<br>> > p = va_arg(args, u_char *);<br>> > <br>> > if (slen == (size_t) -1) {<br>> > while (*p && buf < last) {<br>> > *buf++ = *p++; // <-- CRASH MSVC 2010<br>> > <br>> > Anyone, can help with this?<br>> <br>> The "%u" format specification is invalid.<br>> <br>> -- <br>> Maxim Dounin<br>> http://nginx.org/<br>> <br>> _______________________________________________<br>> nginx-devel mailing list<br>> nginx-devel@nginx.org<br>> http://mailman.nginx.org/mailman/listinfo/nginx-devel<br></div></div><div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange_184x116-v1.png" height="29px" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Livre de vírus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">www.avast.com</a>. </td>
</tr>
</table>
<a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div> </div></body>
</html>