Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Mismatch: Signed to Unsigned #1595

Open
Sneha0523 opened this issue May 28, 2024 · 0 comments
Open

Type Mismatch: Signed to Unsigned #1595

Sneha0523 opened this issue May 28, 2024 · 0 comments

Comments

@Sneha0523
Copy link

usr/local/share/agentWork/app/App_iOS-2/Pods/FirebaseCrashlytics/Crashlytics/Crashlytics/Unwind/Dwarf/FIRCLSDataParsing.c : 234

In FIRCLSDataParsing.c on line 234 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSDwarfUnwind.c on line 828 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSDwarfUnwind.c on line 846 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSDwarfUnwind.c on line 854 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSHost.m on line 104 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSUtility.m on line 54 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSUtility.m on line 62 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In GDTCCTNanopbHelpers.m on line 282 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In GULReachabilityChecker.m on line 184 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In GULReachabilityChecker.m on line 195 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.
In FIRCLSUtility.m on line 58 an unsigned variable is assigned a signed number.An unsigned variable is assigned a signed number.

It is dangerous to rely on implicit casts between signed and unsigned numbers because the result can take on an unexpected value and violate weak assumptions made elsewhere in the program.

Screenshot 2024-05-28 at 7 30 47 PM Screenshot 2024-05-28 at 7 31 14 PM Screenshot 2024-05-28 at 7 34 01 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Sneha0523 and others