Coverity doing scans of Wine codebase!

Colin Wright cdwine at tesco.net
Fri Apr 7 15:31:27 CDT 2006


James Hawkins wrote:
> On 4/7/06, Robert Shearman <rob at codeweavers.com> wrote:
> 
>>>strlen returns a value of type size_t, which is an unsigned value, so
>>>this is always going to be positive.
>>>
>>
>>But strlenW returns an int. I think this is the thing that Coverity is
>>picking up on.
>>
> 
> 
> strlenW from include/wine/unicode.h returns unsigned int :)
> 
> --
> James Hawkins
> 
> 
> 

#include <stdio.h>
int main(void)
{
   short int i;
   unsigned short int j;
   j = 65534;
   i = j + 1;
   printf("The result is %d\n", i);
   return 0;
}

Colin




More information about the wine-devel mailing list