Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3765bb2d
Commit
3765bb2d
authored
Jun 09, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - uint overflow when running on 64-bit platform with more than 4Gb of mem
bug#10711 bug#10058 bug#9363 bug#9025 bug#8918
parent
dc78a772
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp
ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp
+9
-9
No files found.
ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp
View file @
3765bb2d
...
...
@@ -247,10 +247,10 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
AsyncFile
*
openFile
=
theOpenFiles
.
find
(
filePointer
);
const
NewVARIABLE
*
myBaseAddrRef
=
&
getBat
(
blockNumber
)[
fsRWReq
->
varIndex
];
unsigned
int
tPageSize
;
unsigned
int
tClusterSize
;
unsigned
int
tNRR
;
unsigned
int
tPageOffset
;
UintPtr
tPageSize
;
UintPtr
tClusterSize
;
UintPtr
tNRR
;
UintPtr
tPageOffset
;
char
*
tWA
;
FsRef
::
NdbfsErrorCodeType
errorCode
;
...
...
@@ -294,8 +294,8 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
jam
();
for
(
unsigned
int
i
=
0
;
i
<
fsRWReq
->
numberOfPages
;
i
++
)
{
jam
();
const
Uint
32
varIndex
=
fsRWReq
->
data
.
listOfPair
[
i
].
varIndex
;
const
Uint
32
fileOffset
=
fsRWReq
->
data
.
listOfPair
[
i
].
fileOffset
;
const
Uint
Ptr
varIndex
=
fsRWReq
->
data
.
listOfPair
[
i
].
varIndex
;
const
Uint
Ptr
fileOffset
=
fsRWReq
->
data
.
listOfPair
[
i
].
fileOffset
;
if
(
varIndex
>=
tNRR
)
{
jam
();
errorCode
=
FsRef
::
fsErrInvalidParameters
;
...
...
@@ -316,8 +316,8 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
errorCode
=
FsRef
::
fsErrInvalidParameters
;
goto
error
;
}
//if
const
Uint
32
varIndex
=
fsRWReq
->
data
.
arrayOfPages
.
varIndex
;
const
Uint
32
fileOffset
=
fsRWReq
->
data
.
arrayOfPages
.
fileOffset
;
const
Uint
Ptr
varIndex
=
fsRWReq
->
data
.
arrayOfPages
.
varIndex
;
const
Uint
Ptr
fileOffset
=
fsRWReq
->
data
.
arrayOfPages
.
fileOffset
;
request
->
par
.
readWrite
.
pages
[
0
].
offset
=
fileOffset
*
tPageSize
;
request
->
par
.
readWrite
.
pages
[
0
].
size
=
tPageSize
*
fsRWReq
->
numberOfPages
;
...
...
@@ -334,7 +334,7 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
for
(
unsigned
int
i
=
0
;
i
<
fsRWReq
->
numberOfPages
;
i
++
)
{
jam
();
Uint
32
varIndex
=
fsRWReq
->
data
.
listOfMemPages
.
varIndex
[
i
];
Uint
Ptr
varIndex
=
fsRWReq
->
data
.
listOfMemPages
.
varIndex
[
i
];
if
(
varIndex
>=
tNRR
)
{
jam
();
...
...
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