[master] 382c808 VMOD blob: use sentinel values that are strictly signed char in the decode table for base64.
Geoff Simmons
geoff at uplex.de
Mon Sep 4 20:41:11 CEST 2017
commit 382c8081b9de66e176c2797ff10b6fa1e1aed0eb
Author: Geoff Simmons <geoff at uplex.de>
Date: Mon Sep 4 20:39:12 2017 +0200
VMOD blob: use sentinel values that are strictly signed char in the
decode table for base64.
diff --git a/lib/libvmod_blob/base64.h b/lib/libvmod_blob/base64.h
index 708b588..bd83798 100644
--- a/lib/libvmod_blob/base64.h
+++ b/lib/libvmod_blob/base64.h
@@ -28,8 +28,8 @@
#include "vmod_blob.h"
-#define ILL ((int8_t) -1)
-#define PAD ((int8_t) -2)
+#define ILL ((int8_t) 127)
+#define PAD ((int8_t) 126)
static const struct b64_alphabet {
const char b64[64];
More information about the varnish-commit
mailing list