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
23ce69b3
Commit
23ce69b3
authored
Oct 15, 2004
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch for [ 1047269 ] Buffer overwrite in PyUnicode_AsWideChar.
Python 2.3.x candidate.
parent
4f1815fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Objects/unicodeobject.c
Objects/unicodeobject.c
+2
-2
No files found.
Objects/unicodeobject.c
View file @
23ce69b3
...
...
@@ -368,7 +368,7 @@ PyObject *PyUnicode_FromWideChar(register const wchar_t *w,
register
Py_UNICODE
*
u
;
register
int
i
;
u
=
PyUnicode_AS_UNICODE
(
unicode
);
for
(
i
=
size
;
i
>
=
0
;
i
--
)
for
(
i
=
size
;
i
>
0
;
i
--
)
*
u
++
=
*
w
++
;
}
#endif
...
...
@@ -393,7 +393,7 @@ int PyUnicode_AsWideChar(PyUnicodeObject *unicode,
register
Py_UNICODE
*
u
;
register
int
i
;
u
=
PyUnicode_AS_UNICODE
(
unicode
);
for
(
i
=
size
;
i
>
=
0
;
i
--
)
for
(
i
=
size
;
i
>
0
;
i
--
)
*
w
++
=
*
u
++
;
}
#endif
...
...
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