Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
2aa12b1c
Commit
2aa12b1c
authored
7 years ago
by
John Kessenich
Browse files
Options
Downloads
Patches
Plain Diff
HLSL: Address #839: avoid crash by distinguishing between bad argument and no argument.
parent
d1141843
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
hlsl/hlslGrammar.cpp
+6
-1
6 additions, 1 deletion
hlsl/hlslGrammar.cpp
with
6 additions
and
1 deletion
hlsl/hlslGrammar.cpp
+
6
−
1
View file @
2aa12b1c
...
...
@@ -2926,11 +2926,16 @@ bool HlslGrammar::acceptArguments(TFunction* function, TIntermTyped*& arguments)
if
(
!
acceptTokenClass
(
EHTokLeftParen
))
return
false
;
// RIGHT_PAREN
if
(
acceptTokenClass
(
EHTokRightParen
))
return
true
;
// must now be at least one expression...
do
{
// expression
TIntermTyped
*
arg
;
if
(
!
acceptAssignmentExpression
(
arg
))
b
re
ak
;
re
turn
false
;
// hook it up
parseContext
.
handleFunctionArgument
(
function
,
arguments
,
arg
);
...
...
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