Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b9133896
Commit
b9133896
authored
Jun 22, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove INT_MAX assertions; they can fail with large Py_ssize_t #9058
parent
bde67df0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Misc/NEWS
Misc/NEWS
+2
-0
Objects/exceptions.c
Objects/exceptions.c
+0
-3
No files found.
Misc/NEWS
View file @
b9133896
...
...
@@ -24,6 +24,8 @@ What's New in Python 2.7 release candidate 2?
Core and Builtins
-----------------
- Issue #9058: Remove assertions about INT_MAX in UnicodeDecodeError.
- Issue #8202: Previous change to ``sys.argv[0]`` handling for -m command line
option reverted due to unintended side effects on handling of ``sys.path``.
See tracker issue for details.
...
...
Objects/exceptions.c
View file @
b9133896
...
...
@@ -1784,9 +1784,6 @@ PyUnicodeDecodeError_Create(
const
char
*
encoding
,
const
char
*
object
,
Py_ssize_t
length
,
Py_ssize_t
start
,
Py_ssize_t
end
,
const
char
*
reason
)
{
assert
(
length
<
INT_MAX
);
assert
(
start
<
INT_MAX
);
assert
(
end
<
INT_MAX
);
return
PyObject_CallFunction
(
PyExc_UnicodeDecodeError
,
"ss#nns"
,
encoding
,
object
,
length
,
start
,
end
,
reason
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment