From: picca <picca@debian.org>
To: cocci@inria.fr
Subject: [cocci] Bug dans la parseur de coccinelle ?
Date: Thu, 12 Nov 2026 11:34:19 +0100 [thread overview]
Message-ID: <d4be4d6fe184ccc6147abbe3da5cacc1@debian.org> (raw)
Bonjour,
J'ai un fichiers qui ne parse pas, je fini avec cette erreur
bad: sprintf(datetime,"Date: %.2s-%.2s-%.2s time: %.2s:%.2s:%.2s",
bad: &INLINE[25],&INLINE[23],&INLINE[21],&INLINE[35],&INLINE[37],
bad: &INLINE[39]);
bad: if (NULL != fgets(INLINE,INLLEN,infile)) {;}
bad: if (NULL != fgets(INLINE,INLLEN,infile)) {;}
bad: sscanf(INLINE,"%8s%f %f %f
%f",dummy_name,&HMIL,&KMIL,&LMIL,&BETAIN);
bad: /*
bad: * First two characters must be spaces and beta shouldn't be zero
for
bad: * for correct beta read from header
bad: */
BAD:!!!!! if((strstr(INLINE, " ") != INLINE+9) || (BETAIN == 0.))
bad: {
bad: BETAIN = 0.;
bad: has_read_beta = false;
bad: }
bad: else
bad: {
bad: has_read_beta = true;
bad: }
bad:
bad: sprintf(DATATITLE,"%.40s",&INLINE[9]);
INLINE et une variable global de type
char INLINE[fix size] defini dans "ana.h".
J'aimerais savoir comment regler ce probleme de parsing ?
Merci
Frederic.
next reply other threads:[~2026-11-12 10:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 10:34 picca [this message]
2026-11-12 10:40 ` [cocci] Bug dans la parseur de coccinelle ? Julia Lawall
2026-11-12 10:47 ` picca
2026-11-12 12:12 ` Victor Gambier
2026-11-12 12:26 ` picca
2026-11-12 12:29 ` Victor Gambier
2026-11-12 12:36 ` picca
2026-11-12 14:10 ` picca
2026-11-12 14:43 ` Julia Lawall
2026-11-12 14:44 ` Julia Lawall
2026-11-12 12:36 ` Markus Elfring
2026-11-12 12:41 ` picca
2026-11-12 14:51 ` picca
2026-11-12 14:55 ` Julia Lawall
2026-11-13 22:07 ` Julia Lawall
2026-11-16 14:44 ` picca
2026-11-16 14:59 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4be4d6fe184ccc6147abbe3da5cacc1@debian.org \
--to=picca@debian.org \
--cc=cocci@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox