Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
b7946a6f
Commit
b7946a6f
authored
Apr 17, 2015
by
Christian Beier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72 from lopago/fix-segfaults
prevent segfaults due to uninitialized memory
parents
e9302ef7
97490d68
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
rfbssl_gnutls.c
libvncserver/rfbssl_gnutls.c
+2
-0
tight.c
libvncserver/tight.c
+5
-1
No files found.
libvncserver/rfbssl_gnutls.c
View file @
b7946a6f
...
@@ -109,6 +109,8 @@ struct rfbssl_ctx *rfbssl_init_global(char *key, char *cert)
...
@@ -109,6 +109,8 @@ struct rfbssl_ctx *rfbssl_init_global(char *key, char *cert)
gnutls_global_set_log_function
(
rfbssl_log_func
);
gnutls_global_set_log_function
(
rfbssl_log_func
);
gnutls_global_set_log_level
(
1
);
gnutls_global_set_log_level
(
1
);
gnutls_certificate_set_dh_params
(
ctx
->
x509_cred
,
ctx
->
dh_params
);
gnutls_certificate_set_dh_params
(
ctx
->
x509_cred
,
ctx
->
dh_params
);
/* newly allocated memory should be initialized, at least where it is important */
ctx
->
peekstart
=
ctx
->
peeklen
=
0
;
return
ctx
;
return
ctx
;
}
}
...
...
libvncserver/tight.c
View file @
b7946a6f
...
@@ -163,7 +163,11 @@ void rfbTightCleanup (rfbScreenInfoPtr screen)
...
@@ -163,7 +163,11 @@ void rfbTightCleanup (rfbScreenInfoPtr screen)
tightAfterBufSize
=
0
;
tightAfterBufSize
=
0
;
tightAfterBuf
=
NULL
;
tightAfterBuf
=
NULL
;
}
}
if
(
j
)
tjDestroy
(
j
);
if
(
j
)
{
tjDestroy
(
j
);
/* Set freed resource handle to 0! */
j
=
0
;
}
}
}
...
...
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