Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
439df37d
Commit
439df37d
authored
Aug 14, 2014
by
Thomas Jahns
🤸
Browse files
Check table index for valid range.
parent
31a9e182
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/table.c
View file @
439df37d
...
...
@@ -897,6 +897,9 @@ int tableInqParLongname(int tableID, int code, char *longname)
npars
=
parTable
[
tableID
].
npars
;
if
(
tableID
>=
0
&&
tableID
<
MAX_TABLE
)
{
}
else
Error
(
"Invalid table ID %d"
,
tableID
);
if
(
tableID
==
UNDEFID
)
{
err
=
1
;
...
...
Write
Preview
Supports
Markdown
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