List of commits:
Subject Hash Author Date (UTC)
bpo-29990: Fix range checking in GB18030 decoder (#1495) 9da408d15bdef624a5632182cb4edf98001fa82f Xiang Zhang 2017-05-09 03:38:32
bpo-30289: remove Misc/python-config.sh when make distclean (#1498) fa5abac1e6cd74979557d5a6f960a55f40a10b0e Xiang Zhang 2017-05-09 02:32:13
bpo-29979: Rewrite cgi.parse_multipart to make it consistent with FieldStorage (#991) cc3fa204d357be5fafc10eb8c2a80fe0bca998f1 Pierre Quentel 2017-05-08 12:08:34
Fix a trivial typo in global section (#1497) f34c6850203a2406c4950af7a9c8a134145df4ea Jim Fasarakis-Hilliard 2017-05-08 11:36:29
Closes bpo-30168: indent methods in Logger Class (#1295) 55ace65eba587fe3cf3759a43cccf85214651971 Jim Fasarakis-Hilliard 2017-05-07 18:40:18
Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484) 3763ea865cee5bbabcce11cd577811135e0fc747 Serhiy Storchaka 2017-05-06 11:46:01
bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367) a12df7b7d40dbf47825917c8fa03d2c09b5a382c Jelle Zijlstra 2017-05-05 21:27:12
bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478) a1054c3b0037d4c2a5492e79fc193f36245366c7 torsava 2017-05-05 15:35:50
bpo-29920: Document cgitb.text() and cgitb.html() functions (GH-849) c07b3a15be5e0a68a73b4c532861ed8de6932bd2 masklinn 2017-05-05 08:15:12
bpo-30279: Remove unused Python/thread_foobar.h (#1473) fdaeea620f8c78da89cddba4ab010c64535800e0 Masayuki Yamamoto 2017-05-05 08:04:13
bpo-30264: ExpatParser closes the source on error (#1451) ef9c0e732fc50aefbdd7c5a80e04e14b31684e66 Victor Stinner 2017-05-05 07:46:47
bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and _sre.unicode_tolower(). (#1468) 7186cc29be352bed6f1110873283d073fd0643e4 Serhiy Storchaka 2017-05-05 07:42:46
bpo-30243: Fixed the possibility of a crash in _json. (#1420) 76a3e51a403bc84ed536921866c86dd7d07aaa7e Serhiy Storchaka 2017-05-05 07:08:49
bpo-30215: Make re.compile() locale agnostic. (#1361) 898ff03e1e7925ecde3da66327d3cdc7e07625ba Serhiy Storchaka 2017-05-05 05:53:40
Make code coverage less strict (GH-1438) 647c3d381e67490e82cdbbe6c96e46d5e1628ce2 Brett Cannon 2017-05-04 21:58:54
bpo-30273: Update sysconfig (#1464) b109a1d3360fc4bb87b9887264e3634632d392ca Victor Stinner 2017-05-04 21:29:09
bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319) 6dd4d734ed207ba16b017e38f8909de7ef187e29 Antoine Pitrou 2017-05-04 14:44:53
bpo-30263: regrtest: log system load (#1452) 3d0056842c5e06b4102f990b59ab3b607f932dd8 Victor Stinner 2017-05-04 13:21:12
bpo-29956: Improve the math.exp() related documentation. (#1073) dbaf746b6de0ee431c809d3175ab40ccc18898a8 Serhiy Storchaka 2017-05-04 09:25:09
bpo-30166: Import command-line parsing modules only when needed. (#1293) 7e4db2f253c555568d56177c2fd083bcf8f88d34 Serhiy Storchaka 2017-05-04 05:17:47
Commit 9da408d15bdef624a5632182cb4edf98001fa82f - bpo-29990: Fix range checking in GB18030 decoder (#1495)
When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.
Author: Xiang Zhang
Author date (UTC): 2017-05-09 03:38
Committer name: GitHub
Committer date (UTC): 2017-05-09 03:38
Parent(s): fa5abac1e6cd74979557d5a6f960a55f40a10b0e
Signing key:
Tree: 55707952ef7b86c4c333122add2bc27101c27ef0
File Lines added Lines deleted
Lib/test/test_codecencodings_cn.py 6 0
Misc/NEWS 2 0
Modules/cjkcodecs/_codecs_cn.c 3 1
File Lib/test/test_codecencodings_cn.py changed (mode: 100644) (index 3bdf7d0e14..c8a410c2e0)
... ... class Test_GB18030(multibytecodec_support.TestBase, unittest.TestCase):
48 48 (b"abc\x84\x32\x80\x80def", "replace", 'abc\ufffd2\ufffd\ufffddef'), (b"abc\x84\x32\x80\x80def", "replace", 'abc\ufffd2\ufffd\ufffddef'),
49 49 (b"abc\x81\x30\x81\x30def", "strict", 'abc\x80def'), (b"abc\x81\x30\x81\x30def", "strict", 'abc\x80def'),
50 50 (b"abc\x86\x30\x81\x30def", "replace", 'abc\ufffd0\ufffd0def'), (b"abc\x86\x30\x81\x30def", "replace", 'abc\ufffd0\ufffd0def'),
51 # issue29990
52 (b"\xff\x30\x81\x30", "strict", None),
53 (b"\x81\x30\xff\x30", "strict", None),
54 (b"abc\x81\x39\xff\x39\xc1\xc4", "replace", "abc\ufffd\x39\ufffd\x39\u804a"),
55 (b"abc\xab\x36\xff\x30def", "replace", 'abc\ufffd\x36\ufffd\x30def'),
56 (b"abc\xbf\x38\xff\x32\xc1\xc4", "ignore", "abc\x38\x32\u804a"),
51 57 ) )
52 58 has_iso10646 = True has_iso10646 = True
53 59
File Misc/NEWS changed (mode: 100644) (index 5e5ce59e29..b9348880b4)
... ... Extension Modules
317 317 Library Library
318 318 ------- -------
319 319
320 - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma Lin.
321
320 322 - bpo-29979: rewrite cgi.parse_multipart, reusing the FieldStorage class and - bpo-29979: rewrite cgi.parse_multipart, reusing the FieldStorage class and
321 323 making its results consistent with those of FieldStorage for making its results consistent with those of FieldStorage for
322 324 multipart/form-data requests. Patch by Pierre Quentel. multipart/form-data requests. Patch by Pierre Quentel.
File Modules/cjkcodecs/_codecs_cn.c changed (mode: 100644) (index 1a070f2f39..bda175c55d)
... ... DECODER(gb18030)
279 279 REQUIRE_INBUF(4); REQUIRE_INBUF(4);
280 280 c3 = INBYTE3; c3 = INBYTE3;
281 281 c4 = INBYTE4; c4 = INBYTE4;
282 if (c < 0x81 || c3 < 0x81 || c4 < 0x30 || c4 > 0x39)
282 if (c < 0x81 || c > 0xFE ||
283 c3 < 0x81 || c3 > 0xFE ||
284 c4 < 0x30 || c4 > 0x39)
283 285 return 1; return 1;
284 286 c -= 0x81; c2 -= 0x30; c -= 0x81; c2 -= 0x30;
285 287 c3 -= 0x81; c4 -= 0x30; c3 -= 0x81; c4 -= 0x30;
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main