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] fopen and null pointers
- Subject: [Frama-c-discuss] fopen and null pointers
- From: tim.newsham at gmail.com (Tim Newsham)
- Date: Mon, 17 Aug 2015 18:11:13 -1000
When I'm using "fopen" in a test case and comparing it's result with NULL I get a warning in the value analysis: fp = fopen("./seq","r"); /*@ assert Value: ptr_comparison: \pointer_comparable(fp, (void *)0); */ Is there a way I can annotate this call or the fopen function to specify that NULL is a valid return value? -- Tim Newsham | www.thenewsh.com/~newsham | @newshtwit | thenewsh.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150817/2a075d8d/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] fopen and null pointers
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] fopen and null pointers
- Prev by Date: [Frama-c-discuss] specification question
- Next by Date: [Frama-c-discuss] memcpy / memset question
- Previous by thread: [Frama-c-discuss] specification question
- Next by thread: [Frama-c-discuss] fopen and null pointers
- Index(es):