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.

classification
Title: binascii.a2b_hqx("") raises SystemError
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: bauflo3, rhettinger
Priority: high Keywords:

Created on 2004-09-06 08:59 by bauflo3, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg22374 - (view) Author: Florian Bauer (bauflo3) Date: 2004-09-06 08:59
I noticed the following on Python 2.2, Python 2.3 and 
Python 2.4a1 with the Windows builds on WinXP and 
Win2000:

>>> import binascii
>>> binascii.a2b_hqx("")

Traceback (most recent call last):
  File "<pyshell#12>", line 1, in -toplevel-
    binascii.a2b_hqx("")
SystemError: C:\sf\python\dist23
\src\Objects\stringobject.c:3316: bad argument to 
internal function

The empty string is probably wrong input to a2b_hqx, 
but I think it should raise a ValueError at most, not a 
SystemError.
msg22375 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-09-06 20:26
Logged In: YES 
user_id=80475

Working on it.

The same error also occurs with a2b_hqx, b2a_uu, b2a_hqx,
and rlecode_hqx.
msg22376 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-09-06 22:59
Logged In: YES 
user_id=80475

Fixed.
See:
  Modules/binascii.c 2.43
  Lib/test/test_binascii.py 1.16
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40876
2004-09-06 08:59:49bauflo3create