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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6f753e37
Commit
6f753e37
authored
Jan 13, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for a crashing bug in send_data..
parent
9796fe70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
sql/net_pkg.cc
sql/net_pkg.cc
+9
-4
No files found.
sql/net_pkg.cc
View file @
6f753e37
...
...
@@ -283,8 +283,13 @@ bool
net_store_data
(
String
*
packet
,
const
char
*
from
,
uint
length
)
{
ulong
packet_length
=
packet
->
length
();
if
(
packet_length
+
5
+
length
>
packet
->
alloced_length
()
&&
packet
->
realloc
(
packet_length
+
5
+
length
))
/*
We have added net5store in net_store_length.
Before that largest size was int3store.
Therefore +5 is changed to +9
*/
if
(
packet_length
+
9
+
length
>
packet
->
alloced_length
()
&&
packet
->
realloc
(
packet_length
+
9
+
length
))
return
1
;
char
*
to
=
(
char
*
)
net_store_length
((
char
*
)
packet
->
ptr
()
+
packet_length
,
(
ulonglong
)
length
);
...
...
@@ -300,8 +305,8 @@ net_store_data(String *packet,const char *from)
{
uint
length
=
(
uint
)
strlen
(
from
);
uint
packet_length
=
packet
->
length
();
if
(
packet_length
+
5
+
length
>
packet
->
alloced_length
()
&&
packet
->
realloc
(
packet_length
+
5
+
length
))
if
(
packet_length
+
9
+
length
>
packet
->
alloced_length
()
&&
packet
->
realloc
(
packet_length
+
9
+
length
))
return
1
;
char
*
to
=
(
char
*
)
net_store_length
((
char
*
)
packet
->
ptr
()
+
packet_length
,
length
);
...
...
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