[PATCH 1/4] hhctrl.ocx: Add HTML to Unicode decoding capability (try 4).

Alexandre Julliard julliard at winehq.org
Fri Jun 15 06:52:47 CDT 2012


"Erich E. Hoover" <ehoover at mymail.mines.edu> writes:

> +            while(min <= max)
> +            {
> +                const char *encoded_symbol;
> +
> +                pos = (min+max)/2;
> +                encoded_symbol = html_encoded_symbols[pos].html_code;
> +                dir = strncmp(encoded_symbol, amp, len);

You need to check the length, strncmp is not enough.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list