Skip to content

fix(service/resource,service/gateway): Incorrect conversion between integer types.#34

Merged
246859 merged 1 commit intomainfrom
incorrect-conversion
Feb 6, 2025
Merged

fix(service/resource,service/gateway): Incorrect conversion between integer types.#34
246859 merged 1 commit intomainfrom
incorrect-conversion

Conversation

@Deep-Octopus
Copy link
Collaborator

This PR addresses two issues with type conversions:

int64 to int32: The previous code attempted to convert an int64 value to int32, which could result in overflow.
uint32 to signed int: The code also tried to convert an unsigned uint32 value to a signed int, which may lead to incorrect behavior if the value exceeds the range of a signed integer.
Both issues have been resolved to ensure correct and safe type conversions.

Fixes: #5, #4

@246859 246859 merged commit f9738e6 into main Feb 6, 2025
8 checks passed
@246859 246859 deleted the incorrect-conversion branch February 6, 2025 15:18
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

Successfully merging this pull request may close these issues.

Fix code scanning alert - Incorrect conversion between integer types

2 participants