aboutsummaryrefslogtreecommitdiff
path: root/package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-03-28 10:36:47 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-03-28 14:41:28 +0100
commit69b51259a2cccbbeff106b7d3536832ab999c0f1 (patch)
tree2fcbbc1628e17cec68dabb7d3661f7d2c0085693 /package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch
parent1d8426b32cb030888cbd3d8abdc2b4dc70e987c8 (diff)
downloadbuildroot-69b51259a2cccbbeff106b7d3536832ab999c0f1.tar.gz
buildroot-69b51259a2cccbbeff106b7d3536832ab999c0f1.tar.bz2
package/libical: fix CVE-2016-9584
libical allows remote attackers to cause a denial of service (use-after-free) and possibly read heap memory via a crafted ics file. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch')
-rw-r--r--package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch b/package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch
new file mode 100644
index 0000000000..0d74835e44
--- /dev/null
+++ b/package/libical/0002-icaltypes-c-icalreqstattype_from_string-copy-the-reqstattype.patch
@@ -0,0 +1,27 @@
+From 6b9438d746cec6e4e632d78c5244f4be6314d1c9 Mon Sep 17 00:00:00 2001
+From: Allen Winter <allen.winter@kdab.com>
+Date: Sun, 28 May 2017 12:51:10 -0400
+Subject: [PATCH] icaltypes.c - icalreqstattype_from_string(), copy the
+ reqstattype's debug string into its own memory in the ring buffer.
+
+Issue#253
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved (and backported) from:
+https://github.com/libical/libical/commit/6b9438d746cec6e4e632d78c5244f4be6314d1c9]
+---
+ src/libical/icaltypes.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/libical/icaltypes.c b/src/libical/icaltypes.c
+index 70c50d29..85c33545 100644
+--- a/src/libical/icaltypes.c
++++ b/src/libical/icaltypes.c
+@@ -140,7 +140,7 @@ struct icalreqstattype icalreqstattype_from_string(const char *str)
+
+ p2 = strchr(p1+1,';');
+ if (p2 != 0 && *p2 != 0){
+- stat.debug = p2+1;
++ stat.debug = icalmemory_tmp_copy(p2+1);
+ }
+
+ return stat;