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
df28a9d8
Commit
df28a9d8
authored
Apr 15, 2011
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.1 -> 5.5 merge
parents
73c8173f
12a6e0d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
mysql-test/r/loaddata.result
mysql-test/r/loaddata.result
+7
-0
mysql-test/t/loaddata.test
mysql-test/t/loaddata.test
+13
-0
sql/sql_load.cc
sql/sql_load.cc
+1
-1
No files found.
mysql-test/r/loaddata.result
View file @
df28a9d8
...
@@ -532,4 +532,11 @@ a
...
@@ -532,4 +532,11 @@ a
0
0
1
1
DROP TABLE t1;
DROP TABLE t1;
#
# Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U
#
CREATE TABLE t1(f1 INT);
SELECT 0xE1BB30 INTO OUTFILE 't1.dat';
LOAD DATA INFILE 't1.dat' IGNORE INTO TABLE t1 CHARACTER SET utf8;
DROP TABLE t1;
End of 5.1 tests
End of 5.1 tests
mysql-test/t/loaddata.test
View file @
df28a9d8
...
@@ -601,5 +601,18 @@ DROP TABLE t1;
...
@@ -601,5 +601,18 @@ DROP TABLE t1;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
remove_file
$MYSQLD_DATADIR
/
test
/
tmpp2
.
txt
;
remove_file
$MYSQLD_DATADIR
/
test
/
tmpp2
.
txt
;
--
echo
#
--
echo
# Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U
--
echo
#
CREATE
TABLE
t1
(
f1
INT
);
EVAL
SELECT
0xE1BB30
INTO
OUTFILE
't1.dat'
;
--
disable_warnings
LOAD
DATA
INFILE
't1.dat'
IGNORE
INTO
TABLE
t1
CHARACTER
SET
utf8
;
--
enable_warnings
DROP
TABLE
t1
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
dat
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/sql_load.cc
View file @
df28a9d8
...
@@ -1337,7 +1337,7 @@ READ_INFO::READ_INFO(File file_par, uint tot_length, CHARSET_INFO *cs,
...
@@ -1337,7 +1337,7 @@ READ_INFO::READ_INFO(File file_par, uint tot_length, CHARSET_INFO *cs,
/* Set of a stack for unget if long terminators */
/* Set of a stack for unget if long terminators */
uint
length
=
max
(
field_term_length
,
line_term_length
)
+
1
;
uint
length
=
max
(
cs
->
mbmaxlen
,
max
(
field_term_length
,
line_term_length
))
+
1
;
set_if_bigger
(
length
,
line_start
.
length
());
set_if_bigger
(
length
,
line_start
.
length
());
stack
=
stack_pos
=
(
int
*
)
sql_alloc
(
sizeof
(
int
)
*
length
);
stack
=
stack_pos
=
(
int
*
)
sql_alloc
(
sizeof
(
int
)
*
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