All of lore.kernel.org
 help / color / mirror / Atom feed
* [cocci] Bug dans la parseur de coccinelle ?
@ 2026-11-12 10:34 picca
  2026-11-12 10:40 ` Julia Lawall
  0 siblings, 1 reply; 14+ messages in thread
From: picca @ 2026-11-12 10:34 UTC (permalink / raw)
  To: cocci

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-12 14:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 10:34 [cocci] Bug dans la parseur de coccinelle ? picca
2026-11-12 10:40 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.