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
2b447ece
Commit
2b447ece
authored
Mar 06, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
myisam/ft_parser.c
protection against invalid string in ft_get_word mysys/my_symlink2.c typo fixed
parent
67846179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
myisam/ft_parser.c
myisam/ft_parser.c
+2
-2
mysys/my_symlink2.c
mysys/my_symlink2.c
+1
-1
No files found.
myisam/ft_parser.c
View file @
2b447ece
...
...
@@ -103,7 +103,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
FT_WORD
*
word
,
FTB_PARAM
*
param
)
{
byte
*
doc
=*
start
;
uint
mwc
,
length
;
uint
mwc
,
length
,
mbl
;
param
->
yesno
=
(
FTB_YES
==
' '
)
?
1
:
(
param
->
quot
!=
0
);
param
->
plusminus
=
param
->
pmsign
=
0
;
...
...
@@ -144,7 +144,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
}
mwc
=
length
=
0
;
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
))
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
mbl
=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
),
doc
+=
(
mbl
?
mbl
:
1
))
if
(
true_word_char
(
cs
,
*
doc
))
mwc
=
0
;
else
if
(
!
misc_word_char
(
*
doc
)
||
mwc
++
)
...
...
mysys/my_symlink2.c
View file @
2b447ece
...
...
@@ -45,7 +45,7 @@ File my_create_with_symlink(const char *linkname, const char *filename,
else
{
if
(
linkname
)
my_realpath
(
&
abs_linkname
,
linkname
,
MYF
(
0
));
my_realpath
(
abs_linkname
,
linkname
,
MYF
(
0
));
create_link
=
(
linkname
&&
strcmp
(
abs_linkname
,
filename
));
}
...
...
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