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
6622d6f8
Commit
6622d6f8
authored
Nov 04, 2003
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed access to uninitialized memory in protocol::store_time
parent
669365b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
BUILD/compile-pentium-valgrind-max
BUILD/compile-pentium-valgrind-max
+1
-1
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+5
-4
sql/time.cc
sql/time.cc
+2
-1
No files found.
BUILD/compile-pentium-valgrind-max
View file @
6622d6f8
...
@@ -14,7 +14,7 @@ extra_configs="$extra_configs --with-berkeley-db --with-innodb --without-isam --
...
@@ -14,7 +14,7 @@ extra_configs="$extra_configs --with-berkeley-db --with-innodb --without-isam --
if
test
-z
"
$just_print
"
if
test
-z
"
$just_print
"
then
then
set
+v
set
+v
+x
echo
"
\
echo
"
\
******************************************************************************
******************************************************************************
Note that by default BUILD/compile-pentium-valgrind-max calls 'configure' with
Note that by default BUILD/compile-pentium-valgrind-max calls 'configure' with
...
...
mysql-test/mysql-test-run.sh
View file @
6622d6f8
...
@@ -337,7 +337,7 @@ while test $# -gt 0; do
...
@@ -337,7 +337,7 @@ while test $# -gt 0; do
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
--gdb"
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
--gdb"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
--gdb"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
--gdb"
;;
;;
--valgrind
)
--valgrind
|
--valgrind-all
)
VALGRIND
=
`
which valgrind
`
# this will print an error if not found
VALGRIND
=
`
which valgrind
`
# this will print an error if not found
# Give good warning to the user and stop
# Give good warning to the user and stop
if
[
-z
"
$VALGRIND
"
]
;
then
if
[
-z
"
$VALGRIND
"
]
;
then
...
@@ -350,14 +350,15 @@ while test $# -gt 0; do
...
@@ -350,14 +350,15 @@ while test $# -gt 0; do
SLEEP_TIME_AFTER_RESTART
=
10
SLEEP_TIME_AFTER_RESTART
=
10
SLEEP_TIME_FOR_DELETE
=
60
SLEEP_TIME_FOR_DELETE
=
60
USE_RUNNING_SERVER
=
""
USE_RUNNING_SERVER
=
""
if
test
"
$1
"
=
"--valgrind-all"
then
VALGRIND
=
"
$VALGRIND
-v --show-reachable=yes"
fi
;;
;;
--valgrind-options
=
*
)
--valgrind-options
=
*
)
TMP
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--valgrind-options=;;"
`
TMP
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--valgrind-options=;;"
`
VALGRIND
=
"
$VALGRIND
$TMP
"
VALGRIND
=
"
$VALGRIND
$TMP
"
;;
;;
--valgrind-all
)
VALGRIND
=
"
$VALGRIND
-v --show-reachable=yes"
;;
--skip-
*
)
--skip-
*
)
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
$1
"
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
$1
"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
$1
"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
$1
"
...
...
sql/time.cc
View file @
6622d6f8
...
@@ -779,7 +779,8 @@ bool str_to_time(const char *str,uint length,TIME *l_time)
...
@@ -779,7 +779,8 @@ bool str_to_time(const char *str,uint length,TIME *l_time)
current_thd
->
cuted_fields
++
;
current_thd
->
cuted_fields
++
;
return
1
;
return
1
;
}
}
l_time
->
month
=
0
;
l_time
->
year
=
0
;
// For protocol::store_time
l_time
->
month
=
0
;
l_time
->
day
=
date
[
0
];
l_time
->
day
=
date
[
0
];
l_time
->
hour
=
date
[
1
];
l_time
->
hour
=
date
[
1
];
l_time
->
minute
=
date
[
2
];
l_time
->
minute
=
date
[
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