[Cocci] Source code analysis with big regular expressions?
julia.lawall at lip6.fr
Tue Feb 25 22:29:26 CET 2014
On Tue, 25 Feb 2014, SF Markus Elfring wrote:
> > Those two lines at least are not from Coccinelle, so I guess that they are
> > from the PCRE implementation.
> Are there any chances to retrieve a more detailed error information?
> > The regular expression engine is just not likely to be designed to support
> > such a large regular expression.
> I would try to compare the processing of big patterns with similar interfaces
> from other software.
> > If you like you can give each of the function names one by one as a
> > command line argument.
> I imagine that this approach will result also in different opinions about a
> useful patch granularity.
In my opinion, the change you are proposing is controversial. Particular
code instances may be corrected in a better way. If you try to do
everything at once then the kernel maintainer will have a big block that
he has to either accept or reject. If there is one change that is not
made in the best way, then he will have to reject it.
On the other hand, if you do a few things at a time, then most of the
individual things you do will perhaps be noncontroversial.
More information about the Cocci