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] Error of having 0-length array
- Subject: [Frama-c-discuss] Error of having 0-length array
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Tue, 9 Jun 2015 11:53:55 +0200
- In-reply-to: <CAM06BJZKhuoeR5d59sCk1djURohH0uNT9a53sZFmt8xWVg8eEA@mail.gmail.com>
- References: <CAM06BJZKhuoeR5d59sCk1djURohH0uNT9a53sZFmt8xWVg8eEA@mail.gmail.com>
On Mon, Jun 8, 2015 at 10:07 PM, Guanhua Yan <ghyan at binghamton.edu> wrote: > Hi: > > I got this error when trying to use frama-c to analyze the pureftp source > code. > > /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:316:[kernel] user error: > Length of array is zero. This extension is unsupported > > Any clue about this error? > As the message says, arrays of length zero do not exist in C (C99 6.7.5.2:1 âIf the expression is a constant expression, it shall have a value greater than zeroâ). Frama-C, although it supports many nonstandard constructs, does not support this particular nonstandard construct. On a more general note, you are wasting your time trying to analyze software as complex as pureftp without having first gotten used to Frama-C on smaller examples. As an example of a strategic mistake that you should have learnt to avoid with smaller examples, you are pre-processing with a system header from your system: /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h. This never ends well. If the software uses system headers that you cannot replace with ones you write yourself and provide specifications or stub for, you are not ready to analyze it with any of Frama-C's plug-ins. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150609/96d23fa3/attachment-0001.html>
- Follow-Ups:
- [Frama-c-discuss] Error of having 0-length array
- From: ghyan at binghamton.edu (Guanhua Yan)
- [Frama-c-discuss] Error of having 0-length array
- References:
- [Frama-c-discuss] Error of having 0-length array
- From: ghyan at binghamton.edu (Guanhua Yan)
- [Frama-c-discuss] Error of having 0-length array
- Prev by Date: [Frama-c-discuss] Error of having 0-length array
- Next by Date: [Frama-c-discuss] Error of having 0-length array
- Previous by thread: [Frama-c-discuss] Error of having 0-length array
- Next by thread: [Frama-c-discuss] Error of having 0-length array
- Index(es):