From 122b8a1b7e6014d1a9a79baa7f0a0c43be4402f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Mon, 15 Sep 2008 22:21:20 +0200
Subject: [PATCH] (decode_table): Added vertical tab (VT) and form feed (FF) as
 white space characters.

Rev: nettle/base64-decode.c:1.2
---
 base64-decode.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/base64-decode.c b/base64-decode.c
index 0ead7325..ac3bc385 100644
--- a/base64-decode.c
+++ b/base64-decode.c
@@ -35,12 +35,11 @@
 #define TABLE_SPACE -2
 #define TABLE_END -3
 
-/* FIXME: Make sure that all whitespace characters, SPC, HT, VT, FF,
- * CR and LF are ignored. */
 static const signed char
 decode_table[0x100] =
 {
-  -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -1, -1, -2, -1, -1, 
+  /* White space is HT, VT, FF, CR, LF and SPC */
+  -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -1, -1, 
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
   -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
   52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -3, -1, -1,
-- 
GitLab