Benjamin Peterson
207116b84c
use Py_MAX
2016-09-08 11:28:06 -07:00
Steve Dower
940f33a50f
Issue #23524 : Finish removing _PyVerify_fd from sources
2016-09-08 11:21:54 -07:00
Steve Dower
513d7478a1
Fix mismatched if blocks in posixmodule.c.
2016-09-08 10:41:50 -07:00
Steve Dower
cc16be85c0
Issue #27781 : Change file system encoding on Windows to UTF-8 (PEP 529)
2016-09-08 10:35:16 -07:00
Benjamin Peterson
cc854499e4
clinic: PY_LONG_LONG -> long long
2016-09-08 09:29:11 -07:00
Benjamin Peterson
c235af47f1
fix a PY_LONG_LONG straggler
2016-09-08 09:25:03 -07:00
Benjamin Peterson
47ff0734b8
more PY_LONG_LONG to long long
2016-09-08 09:15:54 -07:00
Christian Heimes
c71ec8aef3
sha3: let's keep it simple and always allocate enough extra space for uint64_t[20].
2016-09-08 15:04:38 +02:00
Christian Heimes
5940c535b0
Issue #26798 : Coverity complains about potential memcpy() of overlapped regions. It doesn't hurt to use memmove() here. CID 1372514 / CID 1372515. Upstream https://github.com/BLAKE2/BLAKE2/issues/32
2016-09-08 13:40:25 +02:00
Christian Heimes
cf45ee10fb
Issue #16113 : SHA3: allocate extra memory for lane extraction and check return value of PyModule_Create()
2016-09-08 13:35:00 +02:00
Benjamin Peterson
8f4b247a1d
make sure expected values are interpreted as doubles
2016-09-07 18:09:22 -07:00
Martin Panter
1c748f3830
Issue #27570 : Merge null pointer fixes from 3.5
2016-09-07 23:31:39 +00:00
Benjamin Peterson
840ef8f84b
more linux -> __linux__
2016-09-07 14:45:10 -07:00
Benjamin Peterson
b6c345878a
use the '__linux__' instead 'linux' preprocessor define
2016-09-07 14:08:34 -07:00
Brett Cannon
56be5f5376
Eliminate a tautological-pointer-compare warning found by Clang.
2016-09-07 14:07:16 -07:00
Benjamin Peterson
a9296e7f3b
require C99 bool
2016-09-07 11:06:17 -07:00
Benjamin Peterson
2f8bfef158
replace PY_SIZE_MAX with SIZE_MAX
2016-09-07 09:26:18 -07:00
Christian Heimes
eaa3f5f1ee
Issue #16113 : one more C90 violation in big endian code.
2016-09-07 13:18:40 +02:00
Martin Panter
be8da9c990
Issue #27570 : Avoid zero-length memcpy() calls with null source pointers
2016-09-07 11:04:41 +00:00
Christian Heimes
fa15c854d2
Issue #16113 : take 2 on big endian machines.
2016-09-07 13:01:15 +02:00
Christian Heimes
b205fe9791
Issue #16113 : KeccakP-1600-opt64 does not support big endian platforms yet.
2016-09-07 12:42:47 +02:00
Christian Heimes
6fe2a75b64
Issue #16113 : Add SHA-3 and SHAKE support to hashlib module.
2016-09-07 11:58:24 +02:00
Christian Heimes
dfb9ef1357
blake2: silence two more warnings on platforms with size_t < uint64_t. Don't use SSE2 when cross-compiling
2016-09-07 11:39:21 +02:00
Steve Dower
f5aba58480
Issue #27959 : Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup
2016-09-06 19:42:27 -07:00
Steve Dower
a439191efa
Fix some warnings from MSVC
2016-09-06 19:09:15 -07:00
Benjamin Peterson
35b40c65f6
merge 3.5
2016-09-06 19:04:37 -07:00
Benjamin Peterson
4a757609d1
do not memcpy from NULL
2016-09-06 19:03:40 -07:00
Christian Heimes
cc554b65f1
Silence two warnings in blake2. key_length is between 0 and 64 (block size).
2016-09-07 02:49:11 +02:00
Victor Stinner
9f2a920182
Issue #27776 : include process.h on Windows for getpid()
2016-09-06 17:03:03 -07:00
Victor Stinner
e66987e626
os.urandom() now blocks on Linux
...
Issue #27776 : The os.urandom() function does now block on Linux 3.17 and newer
until the system urandom entropy pool is initialized to increase the security.
This change is part of the PEP 524.
2016-09-06 16:33:52 -07:00
Victor Stinner
9b1f474df6
Add os.getrandom()
...
Issue #27778 : Expose the Linux getrandom() syscall as a new os.getrandom()
function.
This change is part of the PEP 524.
2016-09-06 16:18:52 -07:00
Victor Stinner
581139cb34
Run Argument Clinic on posixmodule.c
...
Issue #17884 .
2016-09-06 15:54:20 -07:00
Christian Heimes
dc5a3fe4ef
Issue #26798 : for loop initial declarations, take 3
2016-09-07 00:32:06 +02:00
Christian Heimes
9c2f304103
Issue #26798 : for loop initial declarations, take 2
2016-09-07 00:09:22 +02:00
Christian Heimes
fe3c9c1ee9
Issue #27691 : Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs.
2016-09-06 23:27:06 +02:00
Christian Heimes
1c03abd026
Issue #27691 : Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs.
2016-09-06 23:25:35 +02:00
Christian Heimes
87bf0febcb
Issue #26798 : for loop initial declarations are only allowed in C99 or C11 mode
2016-09-06 23:18:03 +02:00
Serhiy Storchaka
90493ab30c
Issue #25761 : Improved error reporting about truncated pickle data in
...
C implementation of unpickler. UnpicklingError is now raised instead of
AttributeError and ValueError in some cases.
2016-09-06 23:55:11 +03:00
Benjamin Peterson
ca47063998
replace Py_(u)intptr_t with the c99 standard types
2016-09-06 13:47:26 -07:00
Benjamin Peterson
9b3d77052f
replace Python aliases for standard integer types with the standard integer types ( #17884 )
2016-09-06 13:24:00 -07:00
Christian Heimes
121b9487d1
Issue #26798 : Add BLAKE2 (blake2b and blake2s) to hashlib.
2016-09-06 22:03:25 +02:00
Benjamin Peterson
bbeedc261f
include (now) int standard headers
2016-09-06 12:41:06 -07:00
Benjamin Peterson
ae3869c71e
do not need vcstdint.h anymore
2016-09-06 12:07:53 -07:00
Benjamin Peterson
4fe55106d1
require standard int types to be defined ( #17884 )
2016-09-06 11:58:01 -07:00
Christian Heimes
39093e9e68
Issue #27928 : Add scrypt (password-based key derivation function) to hashlib module (requires OpenSSL 1.1.0).
2016-09-06 20:22:28 +02:00
Benjamin Peterson
af580dff4a
replace PY_LONG_LONG with long long
2016-09-06 10:46:49 -07:00
Benjamin Peterson
1bb0c0bd30
explicitly cast away constness to silence compiler warning
2016-09-05 18:26:19 -07:00
Victor Stinner
3466bde1cc
Avoid calling functions with an empty string as format string
...
Directly pass NULL rather than an empty string.
2016-09-05 18:16:01 -07:00
Victor Stinner
ad8c83ad6b
Avoid inefficient way to call functions without argument
...
Don't pass "()" format to PyObject_CallXXX() to call a function without
argument: pass NULL as the format string instead. It avoids to have to parse a
string to produce 0 argument.
2016-09-05 17:53:15 -07:00
Benjamin Peterson
9d1e4a54f7
merge 3.5
2016-09-05 18:26:26 -07:00