Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
virgl-es
virglrenderer
Commits
bc358da3
Commit
bc358da3
authored
Jan 19, 2016
by
Marc-André Lureau
Committed by
Dave Airlie
Jan 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decode: prevent handle 0 object creation
Signed-off-by:
Marc-André Lureau
<
marcandre.lureau@gmail.com
>
parent
fbee79ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/vrend_decode.c
src/vrend_decode.c
+2
-0
No files found.
src/vrend_decode.c
View file @
bc358da3
...
...
@@ -624,6 +624,8 @@ static int vrend_decode_create_object(struct vrend_decode_ctx *ctx, int length)
if
(
length
<
1
)
return
EINVAL
;
if
(
handle
==
0
)
return
EINVAL
;
switch
(
obj_type
){
case
VIRGL_OBJECT_BLEND
:
...
...
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