[xsd-users] Regarding bugs - Type Mismatch: Signed to Unsigned
Muralidhara B K
muralidhara.bk at microfocus.com
Wed Nov 2 01:53:53 EDT 2022
Hi Boris,
These issues are reported with high severity in our static analysis tool ,it will be great if you provide fix or add explicit casts.
Thanks & Regards,
Murali
muralidhara.bk at microfocus.com
-----Original Message-----
From: Boris Kolpackov <boris at codesynthesis.com>
Sent: 31 October 2022 05:52 PM
To: Muralidhara B K <muralidhara.bk at microfocus.com>
Cc: xsd-users at codesynthesis.com; Sruti Ranjan Majhi <sruti-ranjan.majhi at microfocus.com>; Vijay Kumar P <vijay.kumar7 at microfocus.com>; Adarsh Babu <adarsh.babu at microfocus.com>
Subject: Re: [xsd-users] Regarding bugs - Type Mismatch: Signed to Unsigned
Muralidhara B K <muralidhara.bk at microfocus.com> writes:
> As part of static code analysis , bugs are reported against codes in
> codeSynthesis/xsd-4.0.0-i686-windows/libxsd/xsd/cxx/xml/char-utf8.txx.
>
> Issue Type : Type Mismatch: Signed to Unsigned
>
> Issue are as listed below,
>
> 1. The function in char-utf8.txx is declared to return an unsigned value, but on line 155 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 2. The function in char-utf8.txx is declared to return an unsigned value, but on line 204 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 3. The function in char-utf8.txx is declared to return an unsigned value, but on line 220 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 4. The function in char-utf8.txx is declared to return an unsigned value, but on line 235 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 5. The function in char-utf8.txx is declared to return an unsigned value, but on line 243 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 6. The function in char-utf8.txx is declared to return an unsigned value, but on line 258 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 7. The function in char-utf8.txx is declared to return an unsigned value, but on line 266 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
> 8. The function in char-utf8.txx is declared to return an unsigned value, but on line 274 it returns a signed value. The function is declared to return an unsigned number but returns a signed value.
Firstly, there is no function return on these lines. Rather, it's an assignment of char to unsigned char as part of the UTF8 sequence analysis. These are not bugs but we can add explicit casts if that helps.
More information about the xsd-users
mailing list