Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
060a5cc1
Commit
060a5cc1
authored
Oct 23, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added guard to prevent (theoretical) out of bound access
parent
2937e442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.cpp
src/index.cpp
+7
-3
No files found.
src/index.cpp
View file @
060a5cc1
...
@@ -2158,7 +2158,8 @@ static void writeMemberList(OutputList &ol,bool useSections,int page,
...
@@ -2158,7 +2158,8 @@ static void writeMemberList(OutputList &ol,bool useSections,int page,
const
LetterToIndexMap
<
MemberIndexList
>
&
memberLists
,
const
LetterToIndexMap
<
MemberIndexList
>
&
memberLists
,
DefinitionIntf
::
DefType
type
)
DefinitionIntf
::
DefType
type
)
{
{
ASSERT
((
int
)
type
<
3
);
int
index
=
(
int
)
type
;
ASSERT
(
index
<
3
);
typedef
void
(
*
writeLinkForMember_t
)(
OutputList
&
ol
,
MemberDef
*
md
,
const
char
*
separator
,
typedef
void
(
*
writeLinkForMember_t
)(
OutputList
&
ol
,
MemberDef
*
md
,
const
char
*
separator
,
QCString
&
prevNamespaceName
);
QCString
&
prevNamespaceName
);
...
@@ -2238,8 +2239,11 @@ static void writeMemberList(OutputList &ol,bool useSections,int page,
...
@@ -2238,8 +2239,11 @@ static void writeMemberList(OutputList &ol,bool useSections,int page,
sep
=
", "
;
sep
=
", "
;
// link to class for other members with the same name
// link to class for other members with the same name
}
}
// write the link for the specific list type
if
(
index
<
3
)
writeLinkForMemberMap
[(
int
)
type
](
ol
,
md
,
sep
,
prevDefName
);
{
// write the link for the specific list type
writeLinkForMemberMap
[
index
](
ol
,
md
,
sep
,
prevDefName
);
}
}
}
}
}
if
(
!
firstItem
)
ol
.
endItemListItem
();
if
(
!
firstItem
)
ol
.
endItemListItem
();
...
...
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