Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
06bd41ad
Commit
06bd41ad
authored
Sep 10, 2009
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32text: fix obvious null pointer dereference
This was totally broken over the last year
parent
def8c283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/misc/win32text.c
modules/misc/win32text.c
+6
-0
No files found.
modules/misc/win32text.c
View file @
06bd41ad
...
@@ -227,6 +227,9 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
...
@@ -227,6 +227,9 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
fmt
.
i_x_offset
=
fmt
.
i_y_offset
=
0
;
fmt
.
i_x_offset
=
fmt
.
i_y_offset
=
0
;
/* Build palette */
/* Build palette */
fmt
.
p_palette
=
calloc
(
1
,
sizeof
(
*
fmt
.
p_palette
)
);
if
(
!
fmt
.
p_palette
)
return
VLC_EGENERIC
;
fmt
.
p_palette
->
i_entries
=
16
;
fmt
.
p_palette
->
i_entries
=
16
;
for
(
i
=
0
;
i
<
fmt
.
p_palette
->
i_entries
;
i
++
)
for
(
i
=
0
;
i
<
fmt
.
p_palette
->
i_entries
;
i
++
)
{
{
...
@@ -238,7 +241,10 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
...
@@ -238,7 +241,10 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
p_region
->
p_picture
=
picture_New
(
fmt
.
i_chroma
,
fmt
.
i_width
,
fmt
.
i_height
,
fmt
.
i_aspect
);
p_region
->
p_picture
=
picture_New
(
fmt
.
i_chroma
,
fmt
.
i_width
,
fmt
.
i_height
,
fmt
.
i_aspect
);
if
(
!
p_region
->
p_picture
)
if
(
!
p_region
->
p_picture
)
{
free
(
fmt
.
p_palette
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
p_region
->
fmt
=
fmt
;
p_region
->
fmt
=
fmt
;
p_dst
=
p_region
->
p_picture
->
Y_PIXELS
;
p_dst
=
p_region
->
p_picture
->
Y_PIXELS
;
...
...
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