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
c4ee4e65
Commit
c4ee4e65
authored
Apr 19, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.1-maint
into mysql.com:/home/ram/work/b26851/b26851.5.1
parents
570aacac
3a0042c7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
client/mysql.cc
client/mysql.cc
+2
-2
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+4
-0
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+6
-0
mysys/charset.c
mysys/charset.c
+4
-4
No files found.
client/mysql.cc
View file @
c4ee4e65
...
...
@@ -818,7 +818,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break
;
#endif
case
OPT_CHARSETS_DIR
:
strm
ov
(
mysql_charsets_dir
,
argument
);
strm
ake
(
mysql_charsets_dir
,
argument
,
sizeof
(
mysql_charsets_dir
)
-
1
);
charsets_dir
=
mysql_charsets_dir
;
break
;
case
OPT_DEFAULT_CHARSET
:
...
...
@@ -871,7 +871,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
if
(
argument
&&
strlen
(
argument
))
{
default_pager_set
=
1
;
strm
ov
(
pager
,
argument
);
strm
ake
(
pager
,
argument
,
sizeof
(
pager
)
-
1
);
strmov
(
default_pager
,
pager
);
}
else
if
(
default_pager_set
)
...
...
mysql-test/r/mysql.result
View file @
c4ee4e65
...
...
@@ -174,4 +174,8 @@ ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyrils_superlonghostnam
1
ERROR at line 1: DELIMITER cannot contain a backslash character
ERROR at line 1: DELIMITER cannot contain a backslash character
1
1
1
1
End of 5.0 tests
mysql-test/t/mysql.test
View file @
c4ee4e65
...
...
@@ -265,4 +265,10 @@ EOF
--
exec
$MYSQL
--
version
2
>&
1
>
/
dev
/
null
--
enable_quary_log
#
# bug #26851: Mysql Client --pager Buffer Overflow
#
--
exec
$MYSQL
--
pager
=
"540bytelengthstringxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-
e
"select 1"
2
>&
1
--
exec
$MYSQL
--
character
-
sets
-
dir
=
"540bytelengthstringxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-
e
"select 1"
2
>&
1
--
echo
End
of
5.0
tests
mysys/charset.c
View file @
c4ee4e65
...
...
@@ -388,7 +388,7 @@ my_bool STDCALL init_available_charsets(myf myflags)
static
my_bool
init_available_charsets
(
myf
myflags
)
#endif
{
char
fname
[
FN_REFLEN
];
char
fname
[
FN_REFLEN
+
sizeof
(
MY_CHARSET_INDEX
)
];
my_bool
error
=
FALSE
;
/*
We have to use charset_initialized to not lock on THR_LOCK_charset
...
...
@@ -519,7 +519,7 @@ CHARSET_INFO *get_charset(uint cs_number, myf flags)
if
(
!
cs
&&
(
flags
&
MY_WME
))
{
char
index_file
[
FN_REFLEN
],
cs_string
[
23
];
char
index_file
[
FN_REFLEN
+
sizeof
(
MY_CHARSET_INDEX
)
],
cs_string
[
23
];
strmov
(
get_charsets_dir
(
index_file
),
MY_CHARSET_INDEX
);
cs_string
[
0
]
=
'#'
;
int10_to_str
(
cs_number
,
cs_string
+
1
,
10
);
...
...
@@ -539,7 +539,7 @@ CHARSET_INFO *get_charset_by_name(const char *cs_name, myf flags)
if
(
!
cs
&&
(
flags
&
MY_WME
))
{
char
index_file
[
FN_REFLEN
];
char
index_file
[
FN_REFLEN
+
sizeof
(
MY_CHARSET_INDEX
)
];
strmov
(
get_charsets_dir
(
index_file
),
MY_CHARSET_INDEX
);
my_error
(
EE_UNKNOWN_COLLATION
,
MYF
(
ME_BELL
),
cs_name
,
index_file
);
}
...
...
@@ -564,7 +564,7 @@ CHARSET_INFO *get_charset_by_csname(const char *cs_name,
if
(
!
cs
&&
(
flags
&
MY_WME
))
{
char
index_file
[
FN_REFLEN
];
char
index_file
[
FN_REFLEN
+
sizeof
(
MY_CHARSET_INDEX
)
];
strmov
(
get_charsets_dir
(
index_file
),
MY_CHARSET_INDEX
);
my_error
(
EE_UNKNOWN_CHARSET
,
MYF
(
ME_BELL
),
cs_name
,
index_file
);
}
...
...
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