Created on 2006-08-23 19:37 by nnorwitz, last changed 2006-10-12 11:28 by georg.brandl. This issue is now closed.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2006-08-23 19:37:28 | nnorwitz | create | |
Created on 2006-08-23 19:37 by nnorwitz, last changed 2006-10-12 11:28 by georg.brandl. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg29624 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2006-08-23 19:37 | |
In int_new (Objects/intobject.c), embedded NUL chars are handled differently. We should check that the entire string is converted like PyNumber_Int(). int('5\0') raises an exception. int('5\0', 10) returns 5. >>> int('5\0', 10) 5 >>> int('5\0') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: null byte in argument for int() The difference is the explicit vs implicit base. |
|||
| msg29625 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2006-10-12 11:28 | |
Logged In: YES user_id=849994 Fixed in rev. 52305, 52306 (2.5). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2006-08-23 19:37:28 | nnorwitz | create | |