summarylogtreecommitdiffstats
path: root/protobuf-c-text-004.patch
diff options
context:
space:
mode:
authorStephan Eisvogel2018-03-13 21:49:58 +0100
committerStephan Eisvogel2018-03-13 21:49:58 +0100
commit5bfc6373938201f6a86b6f6d5932a94710f5a6e8 (patch)
tree5e4c2e0334f21c30849e5a887cc55fb5260ab8a8 /protobuf-c-text-004.patch
parent15ce44a3437d23d739ecadb38e00fe77dd20c0fe (diff)
downloadaur-5bfc6373938201f6a86b6f6d5932a94710f5a6e8.tar.gz
Update to nsjail git version of Feb 25 2018
Diffstat (limited to 'protobuf-c-text-004.patch')
-rw-r--r--protobuf-c-text-004.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/protobuf-c-text-004.patch b/protobuf-c-text-004.patch
deleted file mode 100644
index 7ee44573c1ab..000000000000
--- a/protobuf-c-text-004.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From b79ba3f1cd350a9ebc4929fa9d63368b460b8877 Mon Sep 17 00:00:00 2001
-From: Serge Ziryukin <ftrvxmtrx@gmail.com>
-Date: Sun, 13 Sep 2015 00:39:32 +0200
-Subject: [PATCH] esc_str: escape with octal as unsigned (buffer overflow
- otherwise)
-
-Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
----
- protobuf-c-text/generate.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/protobuf-c-text/generate.c b/protobuf-c-text/generate.c
-index b326c6e..6a2b414 100644
---- a/protobuf-c-text/generate.c
-+++ b/protobuf-c-text/generate.c
-@@ -148,7 +148,7 @@ esc_str(char *src, int len, ProtobufCAllocator *allocator)
- /* Escape with octal if !isprint. */
- default:
- if (!isprint(src[i])) {
-- dst_len += sprintf(dst + dst_len, "\\%03o", src[i]);
-+ dst_len += sprintf(dst + dst_len, "\\%03o", (unsigned char)src[i]);
- } else {
- dst[dst_len++] = src[i];
- }