mirror of https://github.com/python/cpython
e9ac890c02
In very rare circumstances the JUMP opcode could be confused with the argument of the opcode in the "then" part which doesn't end with the JUMP opcode. This led to incorrect detection of the final JUMP opcode and incorrect calculation of the size of the subexpression. NOTE: Changed return value of functions _validate_inner() and _validate_charset() in Modules/_sre/sre.c. Now they return 0 on success, -1 on failure, and 1 if the last op is JUMP (which usually is a failure). Previously they returned 1 on success and 0 on failure. |
||
---|---|---|
.. | ||
clinic | ||
sre.c | ||
sre.h | ||
sre_constants.h | ||
sre_lib.h | ||
sre_targets.h |