[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread miss-islington
miss-islington added the comment: New changeset ce3c913909746aa1d782ed8bca5076a656422931 by Miss Islington (bot) in branch '3.8': bpo-38383: Fix possible integer overflow in startswith() of bytes and bytearray. (GH-16603) https://github.com/python/cpython/commit/ce3c913909746aa1d782ed8bca507

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread miss-islington
miss-islington added the comment: New changeset b40442ba88fec5e64ab1802ce37df0afec59fa53 by Miss Islington (bot) in branch '3.7': bpo-38383: Fix possible integer overflow in startswith() of bytes and bytearray. (GH-16603) https://github.com/python/cpython/commit/b40442ba88fec5e64ab1802ce37df

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16193 pull_request: https://github.com/python/cpython/pull/16605 ___ Python tracker ___ __

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16192 pull_request: https://github.com/python/cpython/pull/16604 ___ Python tracker ___ __

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 24ddd9c2d6ab61cbce7e68d6de36d4df9bd2c3fb by Serhiy Storchaka (Hai Shi) in branch 'master': bpo-38383: Fix possible integer overflow in startswith() of bytes and bytearray. (GH-16603) https://github.com/python/cpython/commit/24ddd9c2d6ab61cbce

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +16191 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16603 ___ Python tracker ___

[issue38383] undefined behavior in tailmatch() of bytes_methods.c

2019-10-06 Thread hai shi
New submission from hai shi : `if (start + slen > len)` would cause undefined behavior? such as: start=PY_SSIZE_T_MAX, slen=1 REFS: [1] https://github.com/python/cpython/blob/master/Objects/bytes_methods.c#L746 -- components: Interpreter Core messages: 354032 nosy: shihai1991 priority: