Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dotCall64
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinhard Furrer
dotCall64
Commits
4faa177f
Commit
4faa177f
authored
8 years ago
by
Kaspar Mösinger
Browse files
Options
Downloads
Patches
Plain Diff
Fix: If the arguments 'naok' or 'verbose' are not given, the C code will likely crash.
parent
387681fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dotCall64.c
+4
-2
4 additions, 2 deletions
src/dotCall64.c
with
4 additions
and
2 deletions
src/dotCall64.c
+
4
−
2
View file @
4faa177f
...
...
@@ -119,13 +119,13 @@ SEXP dC64(SEXP args_in) {
// We don't need to PROTECT args and args_names, because they are protected by being a subobject of args_in.
// Check the NAOK argument
if
(
LENGTH
(
naok
)
!=
1
)
if
(
!
naok
||
LENGTH
(
naok
)
!=
1
)
error
(
_
(
"argument 'NAOK' has to be of length 1 (dotCall64)"
));
flag_naok
=
asInteger
(
naok
);
// Check the VERBOSE argument
if
(
LENGTH
(
verbose
)
!=
1
)
if
(
!
verbose
||
LENGTH
(
verbose
)
!=
1
)
error
(
_
(
"argument 'VERBOSE' has to be of length 1 (dotCall64)"
));
flag_verbose
=
asInteger
(
verbose
);
if
(
!
(
flag_verbose
==
0
||
flag_verbose
==
1
||
flag_verbose
==
2
))
...
...
@@ -556,6 +556,8 @@ static void argsfind(SEXP args_in, SEXP *args, SEXP *names,int *len, char *packa
strcpy
(
packageName
,
""
);
*
signature
=
NULL
;
*
intent
=
NULL
;
*
naok
=
NULL
;
*
verbose
=
NULL
;
for
(
s
=
args_in
;
s
!=
R_NilValue
;)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment