- 28 Kas, 2001 37 kayıt (commit)
-
-
Jeremy Hylton yazdı
Also change all the helper functions to pass along the size of the msgbuf and use PyOS_snprintf() when writing into the buffer.
-
Tim Peters yazdı
const char* instead of char*. The change is conceptually correct, and indirectly fixes a compiler wng introduced when somebody else innocently passed a const char* to this function.
-
Tim Peters yazdı
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
seterror() uses a char array and a pointer to the current position in that array. Use snprintf() and compute the amount of space left in the buffer based on the current pointer position.
-
Jeremy Hylton yazdı
If it returns -1 (which indicates overflow on old Linux platforms and perhaps on Windows) or size greater than buffer, write a message indicating that the previous message was truncated.
-
Barry Warsaw yazdı
overrun avoidance.
-
Barry Warsaw yazdı
overrun avoidance.
-
Barry Warsaw yazdı
redefinition problem.
-
Jeremy Hylton yazdı
Also reformat calculate_path() using the standard format.
-
Barry Warsaw yazdı
com_arglist(), symtable_check_unoptimized(), symtable_params(), symtable_global(), symtable_list_comprehension(): Conversion of sprintf() to PyOS_snprintf() for buffer overrun avoidance.
-
Barry Warsaw yazdı
buffer overrun avoidance.
-
Barry Warsaw yazdı
PyOS_snprintf() for buffer overrun avoidance.
-
Barry Warsaw yazdı
PyOS_snprintf() for buffer overrun avoidance.
-
Barry Warsaw yazdı
for buffer overrun avoidance.
-
Barry Warsaw yazdı
overrun avoidance.
-
Barry Warsaw yazdı
sprintf() to PyOS_snprintf() for buffer overrun avoidance.
-
Barry Warsaw yazdı
buffer overrun avoidance.
-
Barry Warsaw yazdı
sprintf() to PyOS_snprintf() for buffer overrun avoidance. complex_print(), complex_repr(), complex_str(): Call complex_to_buf() passing in sizeof(buf).
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
Also replace a switch statement with one case and a default to an if/else.
-
Tim Peters yazdı
-
Jeremy Hylton yazdı
-
Tim Peters yazdı
Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
-
Jeremy Hylton yazdı
Just being sure. The old code looks like it was safe, but there's no harm in double-checking.
-
Guido van Rossum yazdı
the usage docs: (a) align properly, (b) explain properly.
-
Tim Peters yazdı
before 2.2b1.
-
Jeremy Hylton yazdı
Change macros as requested by Guido
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
-
Fred Drake yazdı
achieve a more sensible organization.
-
Fred Drake yazdı
is opened for writing; this closes SF bug #485342. Added notes that file objects are also accepted in the place of file descriptors.
-
Fred Drake yazdı
list of modules.
-
Fred Drake yazdı
parameters (like \UNIX) are commonly entered using an empty group to separate the markup from a following inter-word space; this is not needed when the next character is punctuation, or the markup is the last thing in the enclosing group. These cases were marked inconsistently; the empty group is now *only* used when needed.
-
Barry Warsaw yazdı
output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2.
-
Andrew M. Kuchling yazdı
-
- 27 Kas, 2001 3 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
Tim Peters yazdı
PyEval_EvalCodeEx(): increment tstate->recursion_depth around the decref of the frame, because the C stack for this call is still in use and the decref can lead to __del__ methods getting called. While this gives tstate->recursion_depth a value proportional to the depth of the C stack (instead of a small constant no matter how deeply __del__s recurse), it's not enough to stop the reported crash when using the default recursion limit on Windows. Bugfix candidate.
-
Tim Peters yazdı
Bugfix candidate. tb_displayline(): the sprintf format was choking off the file name, but used plain %s for the function name (which can be arbitrarily long). Limit both to 500 chars max.
-