Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] Small function on buffer doesn't verify
- Subject: [Frama-c-discuss] Small function on buffer doesn't verify
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- Date: Tue, 18 May 2010 09:25:23 +0200
- In-reply-to: <4BF13DCE.40802@cea.fr>
- References: <1273591300.4338.8.camel@iti27> <4BEF960F.6070300@inria.fr> <1274100093.2155.8.camel@iti27> <4BF13DCE.40802@cea.fr>
On Mon, 2010-05-17 at 14:59 +0200, Julien Signoles wrote: > It works if you insert a space between .. and BUFF_SIZE like this: > > /*@ requires \valid(msg+(0.. BUFF_SIZE)); > Jessie is still unable to verify the postcondition in my example. The relevant VC is integer_of_int8(select(char_P_char_M_msg_1_1, shift(msg, 4))) = 0. I use the Beryllium2 distribution. #define BUFF_SIZE 4 /*@ requires \valid(msg+(0.. BUFF_SIZE)); ensures msg[BUFF_SIZE] == '\0'; */ int setFoo(char* msg) { msg[BUFF_SIZE] = '\0'; msg[BUFF_SIZE-1] = '\0'; return 0; }
- Follow-Ups:
- [Frama-c-discuss] Small function on buffer doesn't verify
- From: Julien.Signoles at cea.fr (Julien Signoles)
- [Frama-c-discuss] Small function on buffer doesn't verify
- References:
- [Frama-c-discuss] Small function on buffer doesn't verify
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] Small function on buffer doesn't verify
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] Small function on buffer doesn't verify
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] Small function on buffer doesn't verify
- From: Julien.Signoles at cea.fr (Julien Signoles)
- [Frama-c-discuss] Small function on buffer doesn't verify
- Prev by Date: [Frama-c-discuss] Value analysis and approximaitons
- Next by Date: [Frama-c-discuss] Small function on buffer doesn't verify
- Previous by thread: [Frama-c-discuss] Small function on buffer doesn't verify
- Next by thread: [Frama-c-discuss] Small function on buffer doesn't verify
- Index(es):