summaryrefslogtreecommitdiffstats
path: root/Modules/binascii.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-2/+2
|
* merge 3.5 (closes #27760)Benjamin Peterson2016-08-141-9/+15
|\
| * merge 3.4 (closes #27760)Benjamin Peterson2016-08-141-9/+15
| |\
| | * merge 3.3 (closes #27760)Benjamin Peterson2016-08-141-9/+15
| | |\
| | | * fix possible integer overflow in binascii.b2a_qp (closes #27760)Benjamin Peterson2016-08-141-9/+16
| | | | | | | | | | | | | | | | Reported by Thomas E. Hybel
* | | | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-32/+32
|\ \ \ \ | |/ / / | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * | | Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-32/+32
| | | | | | | | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | | | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-251-17/+27
| | | | | | | | | | | | | | | | private functions.
* | | | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-7/+7
| | | |
* | | | Refactor binascii.rledecode_hqx()Victor Stinner2015-10-141-28/+25
| | | | | | | | | | | | | | | | Rewrite the code to handle the output buffer.
* | | | Issue #25384: Fix binascii.rledecode_hqx()Victor Stinner2015-10-141-4/+7
| | | | | | | | | | | | | | | | | | | | Fix usage of _PyBytesWriter API. Use the new _PyBytesWriter_Resize() function instead of _PyBytesWriter_Prepare().
* | | | Issue #25384: Use _PyBytesWriter API in binasciiVictor Stinner2015-10-131-111/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API avoids a final call to _PyBytes_Resize() for output smaller than 512 bytes. Small optimization: disable overallocation in binascii.rledecode_hqx() for the last write.
* | | | Issue #25357: Add an optional newline paramer to binascii.b2a_base64().Victor Stinner2015-10-111-8/+13
|/ / / | | | | | | | | | base64.b64encode() uses it to avoid a memory copy.
* | | Switch binascii over to using the common _Py_strhex implementation for its hexGregory P. Smith2015-04-261-28/+3
| | | | | | | | | | | | and hexlify functions. issue9951.
* | | Issue #23728: binascii.crc_hqx() could return an integer outside of the rangeSerhiy Storchaka2015-04-201-8/+8
|\ \ \ | |/ / | | | | | | 0-0xffff for empty data.
| * | Issue #23728: binascii.crc_hqx() could return an integer outside of the rangeSerhiy Storchaka2015-04-201-8/+8
| | | | | | | | | | | | 0-0xffff for empty data.
* | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-2/+3
| | |
* | | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-2/+1
|/ /
* | Issue #13637: Improve exception message of a2b_* functions.Berker Peksag2015-02-141-2/+2
| | | | | | | | Patch by Vajrasky Kok.
* | Issue #23280: Fix docstrings for binascii.(un)hexlifyZachary Ware2015-01-201-4/+31
| |
* | Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-16/+16
| | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* | cleanup after custom buffer converterBenjamin Peterson2014-01-261-0/+5
| |
* | Fix for catestrophic errors in previous checkin (Argument Clinic rollup patch).Larry Hastings2014-01-261-1/+1
| |
* | Fixed converting errors in the binascii module (issue20151).Serhiy Storchaka2014-01-251-37/+36
| | | | | | | | | | a2b_qp() now accepts keyword arguments. All "ascii" parameters is renamed to "data" for consistancy with a2b_qp().
* | Issue #20151: The binascii module now uses Argument Clinic.Serhiy Storchaka2014-01-251-294/+307
| |
* | Merge #19411: Clarify that b2a_hex/hexlify returns a bytes object.R David Murray2013-11-031-1/+2
|\ \ | |/
| * #19411: Clarify that b2a_hex/hexlify returns a bytes object.R David Murray2013-11-031-1/+2
| | | | | | | | Initial patch by Vajrasky Kok.
* | Issue #18408: Fix usage of _PyBytes_Resize()Victor Stinner2013-07-081-15/+8
|/ | | | | _PyBytes_Resize(&v, new_size) sets v to NULL on error, so v cannot be used anymore. Replace "Py_DECREF(v); v = NULL;" with "Py_CLEAR(v);".
* Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
|\ | | | | | | | | | | | | | | 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).
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
| | | | | | | | | | | | | | | | 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).
* | Issue #13637: "a2b" functions in the binascii module now accept ASCII-only ↵Antoine Pitrou2011-12-201-6/+44
| | | | | | | | unicode strings.
* | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner2011-10-141-5/+3
|/
* Remove all other uses of the C tolower()/toupper() which could break with a ↵Antoine Pitrou2011-10-041-2/+2
| | | | Turkish locale.
* Fix issue10324 - Modules/binascii.c: simplify expressionsSenthil Kumaran2010-11-091-2/+1
|
* Fix more 64-bit warnings.Antoine Pitrou2010-08-151-1/+1
|
* Fix other warnings under 64-bit Windows.Antoine Pitrou2010-08-151-1/+1
|
* Issue #4770: Restrict binascii module to accept only bytes (as specified).Florent Xicluna2010-07-271-4/+4
| | | | And fix the email package to encode to ASCII instead of ``raw-unicode-escape`` before ASCII-to-binary decoding.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1143/+1143
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Remove duplicated line when merging (it was even valid C!).Antoine Pitrou2010-01-161-1/+0
| | | | Thanks Florent for noticing.
* Merged revisions 77528 via svnmerge fromAntoine Pitrou2010-01-161-2/+14
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77528 | antoine.pitrou | 2010-01-16 18:45:56 +0100 (sam., 16 janv. 2010) | 4 lines Followup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunk nor in py3k). Patch by Florent Xicluna as well as additional tests. ........
* Merged revisions 77506 via svnmerge fromAntoine Pitrou2010-01-151-1/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77506 | antoine.pitrou | 2010-01-15 01:18:00 +0100 (ven., 15 janv. 2010) | 4 lines Issue #7701: Fix crash in binascii.b2a_uu() in debug mode when given a 1-byte argument. Patch by Victor Stinner. ........
* #4542: On Windows, binascii.crc32 still accepted str as binary input.Amaury Forgeot d'Arc2008-12-051-1/+1
| | | | | | This fixes test_binascii. Will backport to 3.0
* Issue #4387: binascii now refuses to accept str as binary input.Martin v. Löwis2008-12-021-8/+8
|
* Fix #3651 various memory leaks when using the buffer interfaceBenjamin Peterson2008-08-271-0/+3
| | | | | by Amaury Forgeot d'Arc Reviewer: Antoine Pitrou
* Fix building binascii when not using the zlib's crc32 (build failure on ↵Antoine Pitrou2008-08-151-1/+1
| | | | Windows buildbots)
* Merged revisions 65654 via svnmerge fromMartin v. Löwis2008-08-131-32/+128
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*. ........
* Merged revisions 64114 via svnmerge fromAmaury Forgeot d'Arc2008-06-181-2/+38
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64114 | gregory.p.smith | 2008-06-11 09:41:16 +0200 (mer., 11 juin 2008) | 6 lines Merge in release25-maint r60793: Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. ........
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-4/+22
|
* Renamed PyString to PyBytesChristian Heimes2008-05-261-40/+40
|
* Merged revisions ↵Christian Heimes2008-03-251-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 61834,61841-61842,61851-61853,61863-61864,61869-61870,61874,61889 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r61834 | raymond.hettinger | 2008-03-24 07:07:49 +0100 (Mon, 24 Mar 2008) | 1 line Tighten documentation for Random.triangular. ........ r61841 | raymond.hettinger | 2008-03-24 09:17:39 +0100 (Mon, 24 Mar 2008) | 1 line Issue 2460: Make Ellipsis objects copyable. ........ r61842 | georg.brandl | 2008-03-24 10:34:34 +0100 (Mon, 24 Mar 2008) | 2 lines #1700821: add a note to audioop docs about signedness of sample formats. ........ r61851 | christian.heimes | 2008-03-24 20:57:42 +0100 (Mon, 24 Mar 2008) | 1 line Added quick hack for bzr ........ r61852 | christian.heimes | 2008-03-24 20:58:17 +0100 (Mon, 24 Mar 2008) | 1 line Added quick hack for bzr ........ r61853 | amaury.forgeotdarc | 2008-03-24 22:04:10 +0100 (Mon, 24 Mar 2008) | 4 lines Issue2469: Correct a typo I introduced at r61793: compilation error with UCS4 builds. All buildbots compile with UCS2... ........ r61863 | neal.norwitz | 2008-03-25 05:17:38 +0100 (Tue, 25 Mar 2008) | 2 lines Fix a bunch of UnboundLocalErrors when the tests fail. ........ r61864 | neal.norwitz | 2008-03-25 05:18:18 +0100 (Tue, 25 Mar 2008) | 2 lines Try to fix a bunch of compiler warnings on Win64. ........ r61869 | neal.norwitz | 2008-03-25 07:35:10 +0100 (Tue, 25 Mar 2008) | 3 lines Don't try to close a non-open file. Don't let file removal cause the test to fail. ........ r61870 | neal.norwitz | 2008-03-25 08:00:39 +0100 (Tue, 25 Mar 2008) | 7 lines Try to get this test to be more stable: * disable gc during the test run because we are spawning objects and there was an exception when calling Popen.__del__ * Always set an alarm handler so the process doesn't exit if the test fails (should probably add assertions on the value of hndl_called in more places) * Using a negative time causes Linux to treat it as zero, so disable that test. ........ r61874 | gregory.p.smith | 2008-03-25 08:31:28 +0100 (Tue, 25 Mar 2008) | 2 lines Use a 32-bit unsigned int here, a long is not needed. ........ r61889 | georg.brandl | 2008-03-25 12:59:51 +0100 (Tue, 25 Mar 2008) | 2 lines Move declarations to block start. ........