emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suspicious warning in W64 build


From: Eli Zaretskii
Subject: Re: Suspicious warning in W64 build
Date: Fri, 08 Sep 2017 11:01:51 +0300

> Date: Thu, 7 Sep 2017 23:59:32 +0200 (CEST)
> From: Angelo Graziosi <address@hidden>
> Cc: address@hidden, address@hidden
> 
> > nglyphs is always positive, it comes from nchars of a glyph_string, or
> > similar.
> > 
> > Angelo and Richard, can you please try that eassume and see if it
> > shuts up the warning?
> 
> I have applied this patch:
> 
> --- w32font.c~  2017-09-07 21:49:47.000000000 +0200
> +++ w32font.c   2017-09-07 23:14:22.997647400 +0200
> @@ -544,6 +544,7 @@
>       information.  */
> 
>    /* Make array big enough to hold surrogates.  */
> +  eassume (0 <= nglyphs);
>    wcode = alloca (nglyphs * sizeof (WORD) * 2);
>    for (i = 0; i < nglyphs; i++)
>      {
> 
> ..and didn't find warning about w32font.c!

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]