Nginx bug?
Ranier VF
ranier_gyn at hotmail.com
Wed Jun 8 16:48:30 UTC 2016
Hello Maxim,Thank you.
> The "%u" format specification is invalid.Nginx ignore %u.
b->last = ngx_sprintf(b->last, "{\"uid\": \"%u\", \"full_name\": \"%u\"}", 0,0);results:{"uid": "", "full_name": ""}
Best regards,
Ranier
> Date: Wed, 8 Jun 2016 18:32:41 +0300
> From: mdounin at mdounin.ru
> To: nginx-devel at nginx.org
> Subject: Re: Nginx bug?
>
> Hello!
>
> On Tue, Jun 07, 2016 at 08:15:09PM +0000, Ranier VF wrote:
>
> > Hi,
> > nginx-1.10, windows build.
> > msvc 2010
> >
> > where full_name is u_char [64]
> > b->last = ngx_sprintf(b->last, "{\"uid\": \"%u\", \"full_name\": \"%s\"}", uid, full_name);
> >
> > This crash in ngx_string.c (line 257)
> > case 's':
> > p = va_arg(args, u_char *);
> >
> > if (slen == (size_t) -1) {
> > while (*p && buf < last) {
> > *buf++ = *p++; // <-- CRASH MSVC 2010
> >
> > Anyone, can help with this?
>
> The "%u" format specification is invalid.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
Livre de vírus. www.avast.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160608/587dac1e/attachment.html>
More information about the nginx-devel
mailing list