src/file_lzh.c: fix wrong Frama-C annotations

This commit is contained in:
Christophe Grenier 2023-10-08 14:40:17 +02:00
parent 73411e2f6d
commit 8582846b9b

View file

@ -116,7 +116,7 @@ static void file_rename_level0(file_recovery_t *file_recovery)
/*@ assert sizeof(struct lzh_level0) + hdr->filename_len <= buffer_size; */ /*@ assert sizeof(struct lzh_level0) + hdr->filename_len <= buffer_size; */
/*@ /*@
@ loop invariant 0 <= i <= hdr->filename_len; @ loop invariant 0 <= i <= hdr->filename_len;
@ loop variant i; @ loop assigns i;
@*/ @*/
for(i=0; i< hdr->filename_len && fn[i]!=0 && fn[i]!='.'; i++); for(i=0; i< hdr->filename_len && fn[i]!=0 && fn[i]!='.'; i++);
/*@ assert 0 <= i <= hdr->filename_len; */ /*@ assert 0 <= i <= hdr->filename_len; */