lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1204103 - /lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp
Date Sat, 19 Nov 2011 23:32:36 GMT
Author: vajda
Date: Sat Nov 19 23:32:36 2011
New Revision: 1204103

URL: http://svn.apache.org/viewvc?rev=1204103&view=rev
Log:
  fixed bug in argument parsing not detecting soon enough incorrect num args


Modified:
    lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp

Modified: lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp?rev=1204103&r1=1204102&r2=1204103&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp (original)
+++ lucene/pylucene/trunk/jcc/jcc/sources/functions.cpp Sat Nov 19 23:32:36 2011
@@ -592,6 +592,9 @@ int _parseArgs(PyObject **args, unsigned
     if (array)
         return -1;
 
+    if (pos != typeCount)
+      return -1;
+
     pos = 0;
 
     for (unsigned int a = 0; a < count; a++, pos++) {



Mime
View raw message