Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0f133aed
Commit
0f133aed
authored
Aug 19, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Avoid invalid memory accesses when create_console_output fails.
parent
46cba58a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
console.c
server/console.c
+3
-2
No files found.
server/console.c
View file @
0f133aed
...
...
@@ -409,6 +409,9 @@ static struct screen_buffer *create_console_output( struct console_input *consol
screen_buffer
->
win
.
right
=
screen_buffer
->
max_width
-
1
;
screen_buffer
->
win
.
top
=
0
;
screen_buffer
->
win
.
bottom
=
screen_buffer
->
max_height
-
1
;
screen_buffer
->
data
=
NULL
;
list_add_head
(
&
screen_buffer_list
,
&
screen_buffer
->
entry
);
if
(
fd
==
-
1
)
screen_buffer
->
fd
=
NULL
;
else
...
...
@@ -422,8 +425,6 @@ static struct screen_buffer *create_console_output( struct console_input *consol
allow_fd_caching
(
screen_buffer
->
fd
);
}
list_add_head
(
&
screen_buffer_list
,
&
screen_buffer
->
entry
);
if
(
!
(
screen_buffer
->
data
=
malloc
(
screen_buffer
->
width
*
screen_buffer
->
height
*
sizeof
(
*
screen_buffer
->
data
)
)))
{
...
...
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