[issue23728] binascii.crc_hqx() can return negative integer

2015-04-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23728 ___

[issue23728] binascii.crc_hqx() can return negative integer

2015-04-20 Thread Roundup Robot
Roundup Robot added the comment: 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

[issue23728] binascii.crc_hqx() can return negative integer

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nobody proposed a patch, so I do this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23728 ___ ___

[issue23728] binascii.crc_hqx() can return negative integer

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka keywords: +patch stage: needs patch - patch review versions: +Python 3.4 Added file: http://bugs.python.org/file38834/binascii_crc_hqx_empty_data.patch ___ Python

[issue23728] binascii.crc_hqx() can return negative integer

2015-03-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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