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
aa93517d
Commit
aa93517d
authored
Sep 29, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding
parent
1aa74ee5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/xdrlib.py
Lib/xdrlib.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/xdrlib.py
View file @
aa93517d
...
...
@@ -79,8 +79,8 @@ class Packer:
def
pack_fstring
(
self
,
n
,
s
):
if
n
<
0
:
raise
ValueError
,
'fstring size must be nonnegative'
n
=
((
n
+
3
)
/
4
)
*
4
data
=
s
[:
n
]
n
=
((
n
+
3
)
/
4
)
*
4
data
=
data
+
(
n
-
len
(
data
))
*
'
\
0
'
self
.
__buf
.
write
(
data
)
...
...
Misc/NEWS
View file @
aa93517d
...
...
@@ -242,6 +242,9 @@ Extension Modules
Library
-------
-
Patch
#
1300515
:
xdrlib
.
py
:
Fix
pack_fstring
()
to
really
use
null
bytes
for
padding
.
-
Bug
#
1296004
:
httplib
.
py
:
Limit
maximal
amount
of
data
read
from
the
socket
to
avoid
a
MemoryError
on
Windows
.
...
...
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