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
d895b20d
Commit
d895b20d
authored
Jun 07, 2001
by
Peter Schneider-Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This closes bug #430849 (internal error produced by binascii.a2b_base64)
parent
22adac50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Modules/binascii.c
Modules/binascii.c
+4
-0
No files found.
Modules/binascii.c
View file @
d895b20d
...
...
@@ -335,6 +335,10 @@ binascii_a2b_base64(PyObject *self, PyObject *args)
if
(
!
PyArg_ParseTuple
(
args
,
"t#:a2b_base64"
,
&
ascii_data
,
&
ascii_len
)
)
return
NULL
;
if
(
ascii_len
==
0
)
{
PyErr_SetString
(
Error
,
"Cannot decode empty input"
);
return
NULL
;
}
bin_len
=
((
ascii_len
+
3
)
/
4
)
*
3
;
/* Upper bound, corrected later */
/* Allocate the buffer */
...
...
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