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
3384ecc9
Commit
3384ecc9
authored
May 23, 2005
by
reggie@mdk10.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG# 9148 Denial of service
fixups of test case and comment formatting
parent
78b40d0a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
6 deletions
+24
-6
mysql-test/r/lowercase_table.result
mysql-test/r/lowercase_table.result
+6
-0
mysql-test/t/lowercase_table.test
mysql-test/t/lowercase_table.test
+11
-0
mysql-test/t/reserved_win_names-master.opt
mysql-test/t/reserved_win_names-master.opt
+0
-1
mysys/my_fopen.c
mysys/my_fopen.c
+3
-2
mysys/my_open.c
mysys/my_open.c
+4
-3
No files found.
mysql-test/r/lowercase_table.result
View file @
3384ecc9
...
...
@@ -83,3 +83,9 @@ create table t2 like T1;
drop table t1, t2;
show tables;
Tables_in_test
use lpt1;
ERROR 42000: Unknown database 'lpt1'
use com1;
ERROR 42000: Unknown database 'com1'
use prn;
ERROR 42000: Unknown database 'prn'
mysql-test/t/lowercase_table.test
View file @
3384ecc9
...
...
@@ -82,3 +82,14 @@ create table t2 like T1;
drop
table
t1
,
t2
;
show
tables
;
#
#Bug 9148: Denial of service
#
--
error
1049
use
lpt1
;
--
error
1049
use
com1
;
--
error
1049
use
prn
;
mysql-test/t/reserved_win_names-master.opt
deleted
100644 → 0
View file @
78b40d0a
--lower_case_table_names=1
mysys/my_fopen.c
View file @
3384ecc9
...
...
@@ -34,8 +34,9 @@ FILE *my_fopen(const char *FileName, int Flags, myf MyFlags)
DBUG_PRINT
(
"my"
,(
"Name: '%s' Flags: %d MyFlags: %d"
,
FileName
,
Flags
,
MyFlags
));
/*
* if we are not creating, then we need to use my_access to make sure
* the file exists since Windows doesn't handle files like "com1.sym" very well
if we are not creating, then we need to use my_access to make sure
the file exists since Windows doesn't handle files like "com1.sym"
very well
*/
#ifdef __WIN__
if
(
!
(
Flags
&
O_CREAT
)
&&
my_access
(
FileName
,
F_OK
))
...
...
mysys/my_open.c
View file @
3384ecc9
...
...
@@ -46,9 +46,10 @@ File my_open(const char *FileName, int Flags, myf MyFlags)
DBUG_PRINT
(
"my"
,(
"Name: '%s' Flags: %d MyFlags: %d"
,
FileName
,
Flags
,
MyFlags
));
#if defined(MSDOS) || defined(__WIN__) || defined(__EMX__) || defined(OS2)
/* if we are not creating, then we need to use my_access to make
* sure the file exists since Windows doesn't handle files like
* "com1.sym" very well
/*
if we are not creating, then we need to use my_access to make
sure the file exists since Windows doesn't handle files like
"com1.sym" very well
*/
if
(
!
(
Flags
&
O_CREAT
)
&&
my_access
(
FileName
,
F_OK
))
return
-
1
;
...
...
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