Commit Graph

192 Commits

Author SHA1 Message Date
Christian Heimes
72f562f719 Fix potential NULL pointer dereferencing in ast module
CID 719690
2013-07-24 21:02:17 +02:00
Serhiy Storchaka
801d955f04 Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:42:01 +02:00
Serhiy Storchaka
5e61f14c6d Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:36:00 +02:00
Antoine Pitrou
c73c561181 Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09 23:14:42 +01:00
Antoine Pitrou
4de7457009 Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag).
2013-02-09 23:11:27 +01:00
Mark Dickinson
ded35aeb9d Issue #16546: make ast.YieldFrom argument mandatory. 2012-11-25 14:36:26 +00:00
Christian Heimes
10e85ded9b Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going out of scope leaks the storage it points to. 2012-09-10 16:53:28 +02:00
Christian Heimes
3d463393bb Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going out of scope leaks the storage it points to. 2012-09-10 16:52:42 +02:00
Benjamin Peterson
d40528fe9a merge 3.2 2012-09-02 16:37:09 -04:00
Benjamin Peterson
c7dedb0945 put * in the normal place 2012-09-02 16:36:01 -04:00
Benjamin Peterson
bd0df50fb6 get rid of ast_error_finish by passing the compiling struct to ast_error 2012-09-02 15:04:51 -04:00
Benjamin Peterson
e9f72dbf0d merge 3.2 2012-09-02 14:38:15 -04:00
Benjamin Peterson
c5d7518a2e move variable decl to the top of the function 2012-09-02 14:38:08 -04:00
Benjamin Peterson
c7f447c89f merge 3.2 (#15846) 2012-09-02 14:24:44 -04:00
Benjamin Peterson
2e2c903700 prevert ast errors from being normalized before ast_error_finish is called (closes #15846) 2012-09-02 14:23:15 -04:00
Stefan Krah
28a2ad556a Check return value of asdl_seq_new(). Found by Coverity. 2012-08-20 16:07:38 +02:00
Benjamin Peterson
518cf94ad7 merge 3.2 2012-03-12 11:16:03 -07:00
Benjamin Peterson
3f3584695e kill this disabled code 2012-03-12 11:15:48 -07:00
Benjamin Peterson
bebcd18b75 merge 3.2 2012-03-12 11:02:10 -07:00
Benjamin Peterson
bc4665ebcb use correct naming convention 2012-03-12 11:00:41 -07:00
Armin Ronacher
6ecf77b3f8 Basic support for PEP 414 without docs or tests. 2012-03-04 12:04:06 +00:00
Benjamin Peterson
c64ae92bf1 fix indentation 2012-01-16 18:02:21 -05:00
Benjamin Peterson
c8909ddd28 break out switch at correct place 2012-01-16 17:44:12 -05:00
Benjamin Peterson
205ad61313 only finish error if one occurred 2012-01-16 17:31:43 -05:00
Benjamin Peterson
c0beabc2a5 move LINENO define to where it actually belongs 2012-01-16 17:29:05 -05:00