Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
savoirfairelinux
jami-daemon
Commits
e8f99381
Commit
e8f99381
authored
7 years ago
by
Hugo Lefeuvre
Committed by
Adrien Béraud
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: global buffer overflow in pjlib
Change-Id: I57b749e9f7819710a691eaa2839092e04dc86fcc
parent
64220b6a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/src/pjproject/gnutls.patch
+8
-3
8 additions, 3 deletions
contrib/src/pjproject/gnutls.patch
with
8 additions
and
3 deletions
contrib/src/pjproject/gnutls.patch
+
8
−
3
View file @
e8f99381
...
...
@@ -375,7 +375,7 @@ new file mode 100644
index 0000000..37bcaba
--- /dev/null
+++ b/pjlib/src/pj/ssl_sock_gtls.c
@@ -0,0 +1,28
77
@@
@@ -0,0 +1,28
82
@@
+/* $Id$ */
+/*
+ * Copyright (C) 2014-2018 Savoir-faire Linux. (https://www.savoirfairelinux.com)
...
...
@@ -855,11 +855,16 @@ index 0000000..37bcaba
+ unsigned char id[2];
+ const char *suite = gnutls_cipher_suite_info(i, (unsigned char *)id,
+ NULL, NULL, NULL, NULL);
+ tls_ciphers[i].id = 0;
+
+ if (i < PJ_ARRAY_SIZE(tls_ciphers))
+ tls_ciphers[i].id = 0;
+ else
+ break;
+
+ /* usually the array size is bigger than the number of available
+ * ciphers anyway, so by checking here we can exit the loop as soon
+ * as either all ciphers have been added or the array is full */
+ if (suite
&& i < PJ_ARRAY_SIZE(tls_ciphers)
) {
+ if (suite) {
+ tls_ciphers[i].id = (pj_ssl_cipher)
+ (pj_uint32_t) ((id[0] << 8) | id[1]);
+ tls_ciphers[i].name = suite;
...
...
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