From 33b28e4a9b4aaf1f00980710737af6241e9aa869 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Sat, 18 Dec 2004 22:34:52 +0000 Subject: Fix a crash that can occur with an improperly formatted history file. PR: 74522 Submitted by: kostik --- net-im/gnomeicu/files/patch-src_history.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net-im/gnomeicu/files/patch-src_history.c (limited to 'net-im/gnomeicu/files/patch-src_history.c') diff --git a/net-im/gnomeicu/files/patch-src_history.c b/net-im/gnomeicu/files/patch-src_history.c new file mode 100644 index 000000000000..b529bd13bda2 --- /dev/null +++ b/net-im/gnomeicu/files/patch-src_history.c @@ -0,0 +1,14 @@ +--- src/history.c.orig Mon Nov 29 20:48:25 2004 ++++ src/history.c Mon Nov 29 20:21:37 2004 +@@ -214,6 +214,11 @@ + char direction; + time_t time; + ++ if (! (ptr+4)) { ++ g_free (hp->buffer); ++ g_free (hp); ++ return FALSE; ++ } + /* read header info */ + sscanf (ptr+4, "%c %d", &direction, (int *)&time); + -- cgit v1.2.3