Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to test return value of PyUnicode_AsUTF8String() for NULL #48662

Closed
CWRUResearcher1 mannequin opened this issue Nov 25, 2008 · 2 comments
Closed

Failure to test return value of PyUnicode_AsUTF8String() for NULL #48662

CWRUResearcher1 mannequin opened this issue Nov 25, 2008 · 2 comments
Labels
performance Performance or resource usage

Comments

@CWRUResearcher1
Copy link
Mannequin

CWRUResearcher1 mannequin commented Nov 25, 2008

BPO 4412
Nosy @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-11-25.02:49:45.321>
created_at = <Date 2008-11-25.00:39:48.165>
labels = ['invalid', 'performance']
title = 'Failure to test return value of PyUnicode_AsUTF8String() for NULL'
updated_at = <Date 2008-11-25.02:49:45.320>
user = 'https://bugs.python.org/CWRUResearcher1'

bugs.python.org fields:

activity = <Date 2008-11-25.02:49:45.320>
actor = 'benjamin.peterson'
assignee = 'none'
closed = True
closed_date = <Date 2008-11-25.02:49:45.321>
closer = 'benjamin.peterson'
components = ['None']
creation = <Date 2008-11-25.00:39:48.165>
creator = 'CWRU_Researcher1'
dependencies = []
files = []
hgrepos = []
issue_num = 4412
keywords = []
message_count = 2.0
messages = ['76372', '76393']
nosy_count = 2.0
nosy_names = ['benjamin.peterson', 'CWRU_Researcher1']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'resource usage'
url = 'https://bugs.python.org/issue4412'
versions = ['Python 2.5.3']

@CWRUResearcher1
Copy link
Mannequin Author

CWRUResearcher1 mannequin commented Nov 25, 2008

/home/rxc92/project/Python-2.5.2/Parser/tokenizer.c
(translate_into_utf8) Line 573
The return value of PyUnicode_AsUTF8String() is never checked if it is NULL.

Reference:
http://www.python.org/doc/2.5.2/api/builtinCodecs.html#l2h-523

@CWRUResearcher1 CWRUResearcher1 mannequin added the performance Performance or resource usage label Nov 25, 2008
@benjaminp
Copy link
Contributor

There are already NULL checks.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage
Projects
None yet
Development

No branches or pull requests

1 participant