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

Treat timestamp as unsigned long in engine api fork validation #8221

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

siladu
Copy link
Contributor

@siladu siladu commented Feb 3, 2025

PR description

If the timestamp is set to > 2^63 - 1 and <= 2^64 - 1 (UnsignedLong.MAX_VALUE = 18446744073709551615), then since we use a (signed) primitive long by default this can overflow and e.g. we interpret 18446744073709551615 as timestamp = -1

This fixes some hive tests as part of #8177

@siladu siladu enabled auto-merge (squash) February 3, 2025 05:54
@siladu siladu merged commit a94f376 into hyperledger:main Feb 3, 2025
43 checks passed
@siladu siladu deleted the unsignedlong-timestamp-comparison branch February 3, 2025 06:12
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.

2 participants