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
58ce5bc1
Commit
58ce5bc1
authored
Jun 05, 2006
by
Hye-Shik Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a potentially invalid memory access of CJKCodecs' shift-jis
decoder. (found by Neal Norwitz)
parent
06c5c008
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Misc/NEWS
Misc/NEWS
+2
-0
Modules/cjkcodecs/_codecs_jp.c
Modules/cjkcodecs/_codecs_jp.c
+2
-1
No files found.
Misc/NEWS
View file @
58ce5bc1
...
...
@@ -75,6 +75,8 @@ Core and builtins
Extension Modules
-----------------
- Fixed a potentially invalid memory access of CJKCodecs'
shift
-
jis
decoder
.
-
Patch
#
1478788
(
modified
version
):
The
functional
extension
module
has
been
renamed
to
_functools
and
a
functools
Python
wrapper
module
added
.
This
provides
a
home
for
additional
function
related
utilities
that
are
...
...
Modules/cjkcodecs/_codecs_jp.c
View file @
58ce5bc1
...
...
@@ -639,10 +639,11 @@ DECODER(shift_jis_2004)
REQUIRE_OUTBUF
(
1
)
JISX0201_DECODE
(
c
,
**
outbuf
)
else
if
((
c
>=
0x81
&&
c
<=
0x9f
)
||
(
c
>=
0xe0
&&
c
<=
0xfc
)){
unsigned
char
c1
,
c2
=
IN2
;
unsigned
char
c1
,
c2
;
ucs4_t
code
;
REQUIRE_INBUF
(
2
)
c2
=
IN2
;
if
(
c2
<
0x40
||
(
c2
>
0x7e
&&
c2
<
0x80
)
||
c2
>
0xfc
)
return
2
;
...
...
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