Skip to content

Conversation

@feliperodri
Copy link
Contributor

Resolved issues:

N/A.

Description of changes:

We add a stub for cmsg::decode where we return a non-deterministic AncillaryData object. With this stub, the handle_get_set_test harness terminates successfuly, since it doesn't include any assertions (that would be checked by Kani) over the content of the nondet object.

Call-outs:

Verification time is less than a minute.

Testing:

N/A.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

We add a stub for cmsg::decode where we return a non-deterministic
AncillaryData object. With this stub, the handle_get_set_test harness
terminates successfuly, since it doesn't include any assertions
(that would be checked by Kani) over the content of the nondet object.

Signed-off-by: Felipe R. Monteiro <[email protected]>
Signed-off-by: Felipe R. Monteiro <[email protected]>
use s2n_quic_core::inet::AncillaryData;

pub fn decode(_msghdr: &libc::msghdr) -> AncillaryData {
let mut ancillary_data = AncillaryData::default();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: we talked offline about adding the ability to call any on a bolero generator. Ideally we would use that here to keep the generators consistent.

camshaft/bolero#194

Signed-off-by: Felipe R. Monteiro <[email protected]>
@feliperodri feliperodri requested a review from camshaft October 26, 2023 19:22
@camshaft camshaft enabled auto-merge (squash) October 26, 2023 19:29
@camshaft camshaft merged commit 7cffdfc into aws:main Oct 26, 2023
@feliperodri feliperodri deleted the boost-kani-harnesses branch October 26, 2023 20:02
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