-
Notifications
You must be signed in to change notification settings - Fork 23
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
[CoreSNTP]Sntp deserialize response and Sntp_SendTimeRequest cbmc proofs #15
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start development of the higher-layer part of the coreSNTP library that represents a "managed client" functionality by adding the Sntp_Init API to initialize an Sntp context.
This reverts commit 6f2017e.
aggarw13
reviewed
May 12, 2021
gshvang
force-pushed
the
Sntp_DeserializeResponse_Proof
branch
5 times, most recently
from
May 12, 2021 02:17
2378112
to
42afe31
Compare
…on to CBMC compliant
…ers in internal function
gshvang
changed the title
[CoreSNTP]Sntp deserialize response cbmc proof
[CoreSNTP]Sntp deserialize response and Sntp_SendTimeRequest cbmc proofs
May 14, 2021
aggarw13
added a commit
that referenced
this pull request
May 19, 2021
CBMC proof run for Sntp_DeserializeResponse PR #15 flags overflow issue in the calculateClockOffset function when assignining negative value to an unsigned integer. This PR refactors the implementation to avoid overflow flagging by: * Storing only positive subtraction values in unsigned integers * Assigning a large unsigned integer (i.e. >= 0x80000000) to signed integer by first using its negative value and then inversing the negation after the assignment to obtain the correct value. This PR also adds resiliency to the clock-offset calculation by adding check against overflow (i.e. when server and client times are more than 34 years apart) on the Client -> Server SNTP request send network path.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains Sntp deserialize response and Sntp_SendTimeRequest cbmc proofs.