This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年03月20日 21:52 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| binascii_crc_hqx_empty_data.patch | serhiy.storchaka, 2015年04月04日 19:18 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg238726 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年03月20日 21:52 | |
zlib.adler32(), zlib.crc32(), and binascii.crc32() always return 32-bit unsigned integer in Python 3. binascii.crc_hqx() almost always returns 16-bit unsigned integer. But there is an exception. The result can negative only when arguments of binascii.crc_hqx() are empty bytes and negative integer. This looks as a bug and should be fixed. But may be no need to apply changes to maintained releases. |
|||
| msg240087 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年04月04日 19:17 | |
Nobody proposed a patch, so I do this. |
|||
| msg241616 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年04月20日 06:33 | |
New changeset 0ead02929df2 by Serhiy Storchaka in branch '3.4': Issue #23728: binascii.crc_hqx() could return an integer outside of the range https://hg.python.org/cpython/rev/0ead02929df2 New changeset abb86c6b11b2 by Serhiy Storchaka in branch 'default': Issue #23728: binascii.crc_hqx() could return an integer outside of the range https://hg.python.org/cpython/rev/abb86c6b11b2 New changeset 17702fd8ac0d by Serhiy Storchaka in branch '2.7': Issue #23728: Added a test for binascii.crc_hqx(). https://hg.python.org/cpython/rev/17702fd8ac0d |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:14 | admin | set | github: 67916 |
| 2015年04月20日 08:25:22 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2015年04月20日 06:33:21 | python-dev | set | nosy:
+ python-dev messages: + msg241616 |
| 2015年04月04日 19:18:25 | serhiy.storchaka | set | files:
+ binascii_crc_hqx_empty_data.patch assignee: serhiy.storchaka stage: needs patch -> patch review keywords: + patch versions: + Python 3.4 |
| 2015年04月04日 19:17:56 | serhiy.storchaka | set | messages: + msg240087 |
| 2015年03月20日 21:52:50 | serhiy.storchaka | create | |