summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-11-16 12:08:45 +0100
committerStefan Metzmacher <metze@samba.org>2022-11-24 11:01:37 +0000
commitdce639f8bd75ecdca261d1dc8b97ce6a8ebb4eb0 (patch)
tree3f5ae40a6d127132e07a4d54a880631e25411a75 /third_party
parent838f62078795150bb7ec9ec1b4690a1d6a8991ae (diff)
downloadsamba-dce639f8bd75ecdca261d1dc8b97ce6a8ebb4eb0.tar.gz
CVE-2022-42898: HEIMDAL: lib/krb5: fix _krb5_get_int64 on systems where 'unsigned long' is just 32-bit
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15203 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/heimdal/lib/krb5/store-int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/heimdal/lib/krb5/store-int.c b/third_party/heimdal/lib/krb5/store-int.c
index 542b99abc08..6fe7eb37fc6 100644
--- a/third_party/heimdal/lib/krb5/store-int.c
+++ b/third_party/heimdal/lib/krb5/store-int.c
@@ -49,7 +49,7 @@ KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL
_krb5_get_int64(void *buffer, uint64_t *value, size_t size)
{
unsigned char *p = buffer;
- unsigned long v = 0;
+ uint64_t v = 0;
size_t i;
for (i = 0; i < size; i++)
v = (v << 8) + p[i];