[ros-dev] [ros-diffs] [hbelusca] 73895: [NTGDI]: Few fixes & hacks for NtGdiGetGlyphIndicesW, see CORE-12825: - (Fix) Check for integer count overflow (per Thomas suggestion), - (Hack#1) Signal the particular calling ca...

Neo Love neo.love at hotmail.com
Fri Mar 3 00:26:17 UTC 2017


If 'cwc' is a pointer or anything that would ever become 64 bits in x64
this type of coding needs rewriting using symbolic sizes.
(Such as ULONG_PTR(-1) and similar constructs..)


On 2017-02-24 20.42, Thomas Faber wrote:
> +    /* Check for integer overflow */
> +    if (cwc & 0x80000000) // (INT_MAX + 1) == INT_MIN

L.


More information about the Ros-dev mailing list