From 32f1276b8c9cdc65f6873b8dc8d86240f25c8907 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 27 Jan 2022 15:29:55 +0100 Subject: [PATCH] fix RFC 8785 JSON normalization --- contrib/gana | 2 +- src/json/json.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/gana b/contrib/gana index b0dd85e81..9b8a78758 160000 --- a/contrib/gana +++ b/contrib/gana @@ -1 +1 @@ -Subproject commit b0dd85e8187f33a1f92dd5eb31082050d333e168 +Subproject commit 9b8a787580307cea5a38359c485d521cd8ece820 diff --git a/src/json/json.c b/src/json/json.c index 705cfe92b..bf3b2a0e7 100644 --- a/src/json/json.c +++ b/src/json/json.c @@ -78,27 +78,27 @@ lowdump (struct GNUNET_Buffer *buf, { case 0x8: GNUNET_buffer_write (buf, - "\b", + "\\b", 2); break; case 0x9: GNUNET_buffer_write (buf, - "\t", + "\\t", 2); break; case 0xA: GNUNET_buffer_write (buf, - "\n", + "\\n", 2); break; case 0xC: GNUNET_buffer_write (buf, - "\f", + "\\f", 2); break; case 0xD: GNUNET_buffer_write (buf, - "\r", + "\\r", 2); break; default: