src/crc.c: fix Frama-C annotations for get_crc32
This commit is contained in:
parent
d29facb0d7
commit
28e29554f7
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ unsigned int get_crc32(const void*buf, const unsigned int len, const uint32_t se
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
register uint32_t crc32val;
|
register uint32_t crc32val;
|
||||||
const unsigned char *s=(const unsigned char *)buf;
|
const unsigned char *s=(const unsigned char *)buf;
|
||||||
|
/*@ assert \valid_read(s + (0 .. len-1)); */
|
||||||
crc32val = seed;
|
crc32val = seed;
|
||||||
/*@ loop invariant 0 <= i <= len;
|
/*@ loop invariant 0 <= i <= len;
|
||||||
@ loop assigns i, crc32val; */
|
@ loop assigns i, crc32val; */
|
||||||
|
|
Loading…
Reference in a new issue