Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ed6d7413
Commit
ed6d7413
authored
Jul 23, 2003
by
Tom Tromey
Committed by
Tom Tromey
Jul 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/natSystem.cc (arraycopy): Check for overflow.
From-SVN: r69706
parent
1143680e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
libjava/ChangeLog
+2
-0
libjava/java/lang/natSystem.cc
+4
-2
No files found.
libjava/ChangeLog
View file @
ed6d7413
2003
-
07
-
23
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
java
/
lang
/
natSystem
.
cc
(
arraycopy
):
Check
for
overflow
.
*
boehm
.
cc
(
_Jv_BuildGCDescr
):
Use
`
1UL
L
'.
2003-07-22 Tom Tromey <tromey@redhat.com>
...
...
libjava/java/lang/natSystem.cc
View file @
ed6d7413
...
...
@@ -66,8 +66,10 @@ java::lang::System::arraycopy (jobject src, jint src_offset,
__JArray
*
src_a
=
(
__JArray
*
)
src
;
__JArray
*
dst_a
=
(
__JArray
*
)
dst
;
if
(
src_offset
<
0
||
dst_offset
<
0
||
count
<
0
||
src_offset
+
count
>
src_a
->
length
||
dst_offset
+
count
>
dst_a
->
length
)
||
(
unsigned
jint
)
src_offset
>
(
unsigned
jint
)
src_a
->
length
||
(
unsigned
jint
)
(
src_offset
+
count
)
>
(
unsigned
jint
)
src_a
->
length
||
(
unsigned
jint
)
dst_offset
>
(
unsigned
jint
)
dst_a
->
length
||
(
unsigned
jint
)
(
dst_offset
+
count
)
>
(
unsigned
jint
)
dst_a
->
length
)
throw
new
ArrayIndexOutOfBoundsException
;
// Do-nothing cases.
...
...
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