From mboxrd@z Thu Jan 1 00:00:00 1970 From: julia.lawall@lip6.fr (Julia Lawall) Date: Fri, 14 Mar 2014 04:48:03 -0400 (EDT) Subject: [Cocci] Clarification for OCaml scripts in SmPL In-Reply-To: <5322C042.3030700@users.sourceforge.net> References: <5307CAA2.8060406@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <531B0D52.5070008@users.sourceforge.net> <531B32F4.9080004@users.sourceforge.net> <531B771D.3020900@users.sourceforge.net> <531C1FAD.6030009@users.sourceforge.net> <531DFDBC.9010801@users.sourceforge.net> <531E04D9.5000605@users.sourceforge.net> <531E2A51.5050000@users.sourceforge.net> <5320328F.5090507@users.sourceforge.net> <5322AC67.8030707@users.sourceforge.net> <5322C042.3030700@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Fri, 14 Mar 2014, SF Markus Elfring wrote: > > The string in question is the file name from a position variable. A file > > name does not contain a quote character. > > I would prefer to handle also the general case that such strings contain > quotation marks eventually. Why would a file name contain a quote character. And if it does, what good will adding exxtra ones do you. If the name is foo\"bar you will have "foo\""bar" and your string will be misparsed by your database. julia > It depends on the analysis area if corresponding safety checks for special > characters will matter, doesn't it? > > Other example: > https://github.com/coccinelle/coccinelle/issues/5 > > Regards, > Markus >