Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c710d4af
Commit
c710d4af
authored
Dec 11, 2018
by
antirez
Browse files
Fix stringmatchlen() read past buffer bug.
See #5632.
parent
11d399dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util.c
View file @
c710d4af
...
...
@@ -48,7 +48,7 @@
int
stringmatchlen
(
const
char
*
pattern
,
int
patternLen
,
const
char
*
string
,
int
stringLen
,
int
nocase
)
{
while
(
patternLen
)
{
while
(
patternLen
&&
stringLen
)
{
switch
(
pattern
[
0
])
{
case
'*'
:
while
(
pattern
[
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