Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b72ac222
Commit
b72ac222
authored
Jun 25, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
Jun 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Keep parsing failure from causing a segmentation fault.
parent
07795754
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.c
dlls/hhctrl.ocx/index.c
+7
-3
No files found.
dlls/hhctrl.ocx/index.c
View file @
b72ac222
...
@@ -191,6 +191,8 @@ static IndexItem *parse_li(HHInfo *info, stream_t *stream)
...
@@ -191,6 +191,8 @@ static IndexItem *parse_li(HHInfo *info, stream_t *stream)
strbuf_zero
(
&
node
);
strbuf_zero
(
&
node
);
}
}
if
(
!
ret
)
FIXME
(
"Failed to parse <li> tag!
\n
"
);
strbuf_free
(
&
node
);
strbuf_free
(
&
node
);
strbuf_free
(
&
node_name
);
strbuf_free
(
&
node_name
);
...
@@ -227,9 +229,11 @@ static void parse_hhindex(HHInfo *info, IStream *str, IndexItem *item)
...
@@ -227,9 +229,11 @@ static void parse_hhindex(HHInfo *info, IStream *str, IndexItem *item)
if
(
!
strcasecmp
(
node_name
.
buf
,
"li"
))
{
if
(
!
strcasecmp
(
node_name
.
buf
,
"li"
))
{
item
->
next
=
parse_li
(
info
,
&
stream
);
item
->
next
=
parse_li
(
info
,
&
stream
);
item
->
next
->
merge
=
item
->
merge
;
if
(
item
->
next
)
{
item
=
item
->
next
;
item
->
next
->
merge
=
item
->
merge
;
item
->
indentLevel
=
indent_level
;
item
=
item
->
next
;
item
->
indentLevel
=
indent_level
;
}
}
else
if
(
!
strcasecmp
(
node_name
.
buf
,
"ul"
))
{
}
else
if
(
!
strcasecmp
(
node_name
.
buf
,
"ul"
))
{
indent_level
++
;
indent_level
++
;
}
else
if
(
!
strcasecmp
(
node_name
.
buf
,
"/ul"
))
{
}
else
if
(
!
strcasecmp
(
node_name
.
buf
,
"/ul"
))
{
...
...
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