diff options
author | Daniel McGregor <daniel.mcgregor@vecima.com> | 2016-05-11 09:41:31 -0600 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-05-19 12:02:39 +0200 |
commit | 5da9408672d3929d2f71d0b15a8e06043c5a1109 (patch) | |
tree | ab7383030f8560a1e8c8d20383e37d9216a86133 | |
parent | 87084feb1e29fe6ff4d9ecf589219343e6eea158 (diff) | |
download | meta-openembedded-5da9408672d3929d2f71d0b15a8e06043c5a1109.tar.gz |
krb5: fix uninitialized variable warning
On some targets clang erroniously detects an uninitialized variable.
Backport the fix from upstream.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch | 37 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch b/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch new file mode 100644 index 000000000..c6731a900 --- /dev/null +++ b/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From f1b681a44d28946e6d8fc0080f3efe94228d7dfe Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Yu <tlyu@mit.edu> | ||
3 | Date: Wed, 6 Jan 2016 15:24:16 -0500 | ||
4 | Subject: [PATCH] Work around uninitialized warning in cc_kcm.c | ||
5 | |||
6 | Some versions of clang erroneously detect use of an uninitialized | ||
7 | variable reply_len in kcmio_call() when building on non-Mac platforms. | ||
8 | Initialize it to work around this warning. | ||
9 | |||
10 | (cherry picked from commit 40b007c0d8e2a12c6f4205ac111dee731c9d970c) | ||
11 | |||
12 | ticket: 8335 | ||
13 | version_fixed: 1.13.4 | ||
14 | tags: -pullup | ||
15 | status: resolved | ||
16 | |||
17 | Upstream-Status: backport | ||
18 | --- | ||
19 | src/lib/krb5/ccache/cc_kcm.c | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/src/lib/krb5/ccache/cc_kcm.c b/src/lib/krb5/ccache/cc_kcm.c | ||
23 | index b763ea4..6337b57 100644 | ||
24 | --- a/src/lib/krb5/ccache/cc_kcm.c | ||
25 | +++ b/src/lib/krb5/ccache/cc_kcm.c | ||
26 | @@ -377,7 +377,7 @@ static krb5_error_code | ||
27 | kcmio_call(krb5_context context, struct kcmio *io, struct kcmreq *req) | ||
28 | { | ||
29 | krb5_error_code ret; | ||
30 | - size_t reply_len; | ||
31 | + size_t reply_len = 0; | ||
32 | |||
33 | if (k5_buf_status(&req->reqbuf) != 0) | ||
34 | return ENOMEM; | ||
35 | -- | ||
36 | 2.8.2 | ||
37 | |||
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb index 713b76c08..0c566cbc2 100644 --- a/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb +++ b/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb | |||
@@ -33,6 +33,7 @@ SRC_URI = "http://web.mit.edu/kerberos/dist/${BPN}/${SHRT_VER}/${BP}-signed.tar | |||
33 | file://etc/default/krb5-kdc \ | 33 | file://etc/default/krb5-kdc \ |
34 | file://etc/default/krb5-admin-server \ | 34 | file://etc/default/krb5-admin-server \ |
35 | file://krb5-CVE-2016-3119.patch;striplevel=2 \ | 35 | file://krb5-CVE-2016-3119.patch;striplevel=2 \ |
36 | file://0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch;striplevel=2 \ | ||
36 | " | 37 | " |
37 | SRC_URI[md5sum] = "f7ebfa6c99c10b16979ebf9a98343189" | 38 | SRC_URI[md5sum] = "f7ebfa6c99c10b16979ebf9a98343189" |
38 | SRC_URI[sha256sum] = "e528c30b0209c741f6f320cb83122ded92f291802b6a1a1dc1a01dcdb3ff6de1" | 39 | SRC_URI[sha256sum] = "e528c30b0209c741f6f320cb83122ded92f291802b6a1a1dc1a01dcdb3ff6de1" |