Jesus Cea
09bf7a799d
Closes #15897 : zipimport.c doesn't check return value of fseek()
14 years ago
Antoine Pitrou
c194884983
Sanitize and modernize some of the _elementtree code (see issue #16089 ).
14 years ago
Stefan Krah
a0346e56ac
Support gcc's -ansi flag: use "__asm__" instead of "asm".
14 years ago
Stefan Krah
e59aa8c94d
Revert 29506c7db353 (build output should be accurate).
14 years ago
Christian Heimes
72c9946718
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
14 years ago
Stefan Krah
9a3f05e60f
Make it clear that the pi function is modified for benchmarking purposes.
14 years ago
Stefan Krah
6b6a1df996
Restore the benchmark order to avoid waiting for decimal.py if just the
prec=9 test is used.
14 years ago
Brett Cannon
6cf50c5b1d
Fix whitespace.
14 years ago
Brett Cannon
63092fe0ea
Fix whitespace.
14 years ago
Brett Cannon
d266c4451f
Make the decimal bench file run under Python 2.7.
14 years ago
Senthil Kumaran
67b7b98a47
Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
14 years ago
Georg Brandl
d37b9d7e1b
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method.
14 years ago
Christian Heimes
e26d3af7ee
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
14 years ago
Christian Heimes
3b9493b53c
Use C-style comments for C89 / ANSI C compatibility
14 years ago
Christian Heimes
b8cd700155
Use C-style comments for C89 / ANSI C compatibility
14 years ago
Stefan Krah
91ceeceea7
Use C-style comments (required for the AIX build slave).
14 years ago
Stefan Krah
a4b4dea415
Use C-style comments (required for the AIX build slave).
14 years ago
Stefan Krah
7e6523fbd7
Use C-style comments.
14 years ago
Stefan Krah
f817a7b178
Use C-style comments.
14 years ago
Victor Stinner
a3ff101e6a
Issue #5969 : faulthandler module: rename dump_tracebacks_later() to
dump_traceback_later() and cancel_dump_tracebacks_later() to
cancel_dump_traceback_later().
14 years ago
Alexander Belopolsky
57caede470
Issue #15973 : fixed 3.2 backport.
14 years ago
Alexander Belopolsky
3ec153681e
Issue #15973 : Fixed segmentation fault on timezone comparison to other types.
14 years ago
Antoine Pitrou
ca8aa4acf6
Issue #15144 : Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t.
Patch by Serhiy Storchaka.
14 years ago
Christian Heimes
5cb31c9277
Issue #15977 : Fix memory leak in Modules/_ssl.c when the function _set_npn_protocols() is called multiple times
14 years ago
Trent Nelson
9a46105a89
#15965 : Explicitly cast AT_FDCWD as (int).
Required on Solaris 10 (which defines AT_FDCWD as 0xffd19553),
harmless on other platforms.
14 years ago
Ezio Melotti
16d2b47837
#15796 : Fix \n in readline docstring. Patch by Serhiy Storchaka.
14 years ago
Antoine Pitrou
9d20e0edd9
Issue #15926 : Fix crash after multiple reinitializations of the interpreter.
14 years ago
Benjamin Peterson
6f3e5e48d3
remove useless and defined initialization ( closes #15921 )
14 years ago
Jesus Cea
c8754a13e6
Closes #15793 : Stack corruption in ssl.RAND_egd()
14 years ago
Jesus Cea
e8db356cf1
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
14 years ago
Jesus Cea
1f2799bef4
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
14 years ago
Stefan Krah
76e12179c5
Issue #15882 : Change _decimal to accept any coefficient tuple when
constructing infinities. This is done for backwards compatibility
with decimal.py: Infinity coefficients are undefined in _decimal
(in accordance with the specification).
14 years ago
Christian Heimes
8f734ebe94
Fixed reference leak in error branch of _bufferedreader_read_all(). The variable data can contain a bytes object but it wasn't cleaned up when PyList_New() failed. CID 715364
14 years ago
Christian Heimes
f47d79fec1
Fixed reference leak in error branch of _bufferedreader_read_all(). The variable data can contain a bytes object but it wasn't cleaned up when PyList_New() failed. CID 715364
14 years ago
Christian Heimes
19606411d3
Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't enlarged for the new 'x' flag. The buffer may contain the 5 flags xrwa+ and the \0 byte
14 years ago
Georg Brandl
0085a24075
Closes #15973 : fix a segmentation fault when comparing timezone objects.
14 years ago
Antoine Pitrou
fd296ff5d6
Issue #15926 : Fix crash after multiple reinitializations of the interpreter.
14 years ago
Georg Brandl
deb92b5b1b
Closes #15969 : rename new API to have consistent names in the faulthandler module.
14 years ago
Christian Heimes
63b38bbd1d
Issue #15977 : Fix memory leak in Modules/_ssl.c when the function _set_npn_protocols() is called multiple times
14 years ago
Stefan Krah
dbcf103be0
Issue #15882 : Change _decimal to accept any coefficient tuple when
constructing infinities. This is done for backwards compatibility
with decimal.py: Infinity coefficients are undefined in _decimal
(in accordance with the specification).
14 years ago
Christian Heimes
89ff3c7f20
Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't enlarged for the new 'x' flag. The buffer may contain the 5 flags xrwa+ and the \0 byte
14 years ago
Christian Heimes
1b5c76a283
Fixed two memory leaks in make_filename() in zipimport.c. The allocated buffer wasn't cleaned up in two error cases. CID 486832
14 years ago
Christian Heimes
15b6885fe0
Make sure that *really* no more than sizeof(ifr.ifr_name) chars are strcpy-ed to ifr.ifr_name and that the string is *always* NUL terminated. New code shouldn't use strcpy(), too. CID 719692
14 years ago
Jesus Cea
941bfcc537
Closes #15676 : mmap: add empty file check prior to offset check
14 years ago
Stefan Krah
96efdd422c
Issue #15868 : Fix refleak in bytesio.c (Coverity #715365 ).
14 years ago
Ross Lagerwall
2dabaf63cf
Issue #15876 : Fix a refleak in the curses module
The refleak occurred when assigning to window.encoding.
14 years ago
Stefan Krah
527a2400fb
_testbuffer.c: In all current use cases of cmp_structure() dest->format and
src->format are either both NULL or both non-NULL. However, it is safer to
generalize the function. Found by Coverity.
14 years ago
Antoine Pitrou
1d857453b7
Issue #15841 : The readable(), writable() and seekable() methods of BytesIO
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
14 years ago
Victor Stinner
9f16e44a47
Close #14223 : Fix window.addch(curses.ACS_HLINE)
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
14 years ago
Victor Stinner
eaaf9e9249
Close #14223 : Fix window.addch(curses.ACS_HLINE)
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
14 years ago