[SCM] serd/master: Add patch to fix snprintf overflow (Closes: #624775).
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Tue May 3 11:57:02 UTC 2011
The following commit has been merged in the master branch:
commit 0c6f32f8bc903d54bddd093c539bb78ce9397954
Author: Alessio Treglia <alessio at debian.org>
Date: Tue May 3 13:56:49 2011 +0200
Add patch to fix snprintf overflow (Closes: #624775).
diff --git a/debian/patches/0001-write_text_escape_buf_overflow.patch b/debian/patches/0001-write_text_escape_buf_overflow.patch
new file mode 100644
index 0000000..18e2f93
--- /dev/null
+++ b/debian/patches/0001-write_text_escape_buf_overflow.patch
@@ -0,0 +1,18 @@
+Description: Fix snprintf overflow.
+From: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624775
+Forwarded: yes
+---
+ src/writer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- serd.orig/src/writer.c
++++ serd/src/writer.c
+@@ -64,7 +64,7 @@ static bool
+ write_text(SerdWriter* writer, TextContext ctx,
+ const uint8_t* utf8, size_t n_bytes, uint8_t terminator)
+ {
+- char escape[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
++ char escape[15] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+ for (size_t i = 0; i < n_bytes;) {
+ uint8_t in = utf8[i++];
+ switch (in) {
diff --git a/debian/patches/series b/debian/patches/series
index e61b9ae..1ca5cf8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001-write_text_escape_buf_overflow.patch
1001-dont_run_ldconfig.patch
--
serd packaging
More information about the pkg-multimedia-commits
mailing list