forked from pool/python38
Matej Cepl
708a7675a4
- Update to 3.8.12 * Complete list of changes is available at https://docs.python.org/release/3.8.12/whatsnew/changelog.html * Security - bpo-42278: Replaced usage of tempfile.mktemp() with TemporaryDirectory to avoid a potential race condition. - bpo-44394: Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the fix for the CVE-2013-0340 “Billion Laughs” vulnerability. This copy is most used on Windows and macOS. - bpo-43124: Made the internal putcmd function in smtplib sanitize input for presence of \r and \n characters to avoid (unlikely) command injection. - bpo-36384: ipaddress module no longer accepts any leading zeros in IPv4 address strings. Leading zeros are ambiguous and interpreted as octal notation by some libraries. For example the legacy function socket.inet_aton() treats leading zeros as octal notation. glibc implementation of modern inet_pton() does not accept any leading zeros. For a while the ipaddress module used to accept ambiguous leading zeros. - Refreshed patch: * decimal-3.8.patch OBS-URL: https://build.opensuse.org/request/show/915148 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=80
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
---
|
|
Modules/_decimal/_decimal.c | 4 ++--
|
|
setup.py | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/Modules/_decimal/_decimal.c
|
|
+++ b/Modules/_decimal/_decimal.c
|
|
@@ -3284,7 +3284,7 @@ dec_format(PyObject *dec, PyObject *args
|
|
}
|
|
else {
|
|
size_t n = strlen(spec.dot);
|
|
- if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) {
|
|
+ if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) {
|
|
/* fix locale dependent non-ascii characters */
|
|
dot = dotsep_as_utf8(spec.dot);
|
|
if (dot == NULL) {
|
|
@@ -3293,7 +3293,7 @@ dec_format(PyObject *dec, PyObject *args
|
|
spec.dot = PyBytes_AS_STRING(dot);
|
|
}
|
|
n = strlen(spec.sep);
|
|
- if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) {
|
|
+ if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) {
|
|
/* fix locale dependent non-ascii characters */
|
|
sep = dotsep_as_utf8(spec.sep);
|
|
if (sep == NULL) {
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -2053,7 +2053,7 @@ class PyBuildExt(build_ext):
|
|
undef_macros = []
|
|
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
|
|
include_dirs = []
|
|
- libraries = [':libmpdec.so.2']
|
|
+ libraries = ['mpdec']
|
|
sources = ['_decimal/_decimal.c']
|
|
depends = ['_decimal/docstrings.h']
|
|
else:
|