Skip to content

Commit b88da23

Browse files
committed
Fix DHCP v6 CBMC
1 parent c2a87c6 commit b88da23

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

test/cbmc/proofs/DHCPv6/DHCPv6Process/DHCPv6Process_harness.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ int32_t FreeRTOS_recvfrom( Socket_t xSocket,
153153
return retVal;
154154
}
155155

156+
/* For the purpose of this proof we stub the
157+
* implementation of FreeRTOS_ReleaseUDPPayloadBuffer here, but make sure that
158+
* the pvBuffer is not NULL, its not verified here if the pointer is a valid
159+
* payload buffer as its proved in other proofs */
160+
void FreeRTOS_ReleaseUDPPayloadBuffer( void * pvBuffer )
161+
{
162+
__CPROVER_assert( pvBuffer != NULL,
163+
"FreeRTOS precondition: pvBuffer != NULL" );
164+
}
165+
156166
void harness()
157167
{
158168
BaseType_t xReset;

test/cbmc/proofs/DHCPv6/DHCPv6Process/Makefile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"CBMCFLAGS":
66
[
77
"--unwind {LOOP_UNWIND_COUNT}",
8+
"--unwindset memcmp.0:17",
89
"--nondet-static --flush"
910
],
1011
"OPT":

0 commit comments

Comments
 (0)