Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Add CBMC OTA proof for prvRequestJob_MQTT #1965

Merged
merged 2 commits into from
May 12, 2020

Conversation

yanjos-dev
Copy link
Contributor

Description

Added a CBMC proof for the prvRequestJob_MQTT OTA function.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@yanjos-dev yanjos-dev requested review from markrtuttle and tgsong May 1, 2020 19:48
pxAgentCtx.pvConnectionContext = &connContext;
__CPROVER_assume(pxAgentCtx.pvConnectionContext != NULL);

prvRequestJob_Mqtt(&pxAgentCtx);
Copy link
Contributor

Choose a reason for hiding this comment

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

Anything that can be asserted about pxAgentCtx after this operation finishes?

Copy link
Contributor Author

@yanjos-dev yanjos-dev May 4, 2020

Choose a reason for hiding this comment

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

pxAgentCtx is being operated on so it's possible that we could do some validation on what a "correct" pxAgentCtx would look like after the function has been called. Although this would be more along the lines of functional testing and is out of scope for this change.

@yanjos-dev yanjos-dev requested a review from dan4thewin May 1, 2020 20:11
* Add NULL as a potential value for connContext
* Add a newline to Makefile.json
* Add a comment to the signature of function under test
@yanjos-dev yanjos-dev force-pushed the cbmc/prvRequestJob_MQTT branch from 1e021ac to 95d52c6 Compare May 4, 2020 20:45
@yanjos-dev yanjos-dev merged commit 3057f7e into aws:master May 12, 2020
@yanjos-dev yanjos-dev deleted the cbmc/prvRequestJob_MQTT branch May 12, 2020 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants