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

Refactor prvCheckoptions on master branch. #1481

Merged

Conversation

markrtuttle
Copy link
Contributor

This pull request refactors the TCP/IP header checking function prvCheckOptions. This refactoring replaces the loop bodies of the two nested loops with functions. This makes the code easier to read. It also makes it possible to prove the memory safety of prvCheckOptions with CBMC quickly: The functions representing the loop bodies are proved independently, and the result is used in the proof of prvCheckOptions itself.

This pull request was discussed and accepted by dcgaws and alexa-noxon (but never merged) as #259 (now closed) and #369 (now closed). The revisions of the pull request have simply reapplied the refactoring to master as master has evolved.

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

Mark R. Tuttle added 2 commits October 30, 2019 09:35
Refactor the function prvCheckOptions so that the two bodies of the
two nested loops as functions replacing the loop bodies.  This makes
the code easier to read.  It also makes it possible to prove the
memory safety of the code with CBMC quickly.
…ons for CBMC proof.

Also remove CBMC patch refactoring prvCheckOptions (this branch does the refactoring).
@markrtuttle markrtuttle changed the title Refactor pCvcheckoptions on master branch. Refactor prvCheckoptions on master branch. Oct 30, 2019
@dan4thewin dan4thewin merged commit 106f28a into aws:master Nov 25, 2019
@markrtuttle markrtuttle deleted the refactor-checkoptions-on-master-branch branch January 30, 2020 18:40
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.

4 participants