diff options
author | marcus <marcus@FreeBSD.org> | 2004-12-19 06:34:52 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-12-19 06:34:52 +0800 |
commit | 21707743e7cc20a6fb40b7e3df309d68af929198 (patch) | |
tree | bcc0384d964f0a73c1038e01169c8286d77d4bdd /net-im/gnomeicu/files | |
parent | 580c6d85d0afc2117b2e63392227e4770245653b (diff) | |
download | freebsd-ports-gnome-21707743e7cc20a6fb40b7e3df309d68af929198.tar.gz freebsd-ports-gnome-21707743e7cc20a6fb40b7e3df309d68af929198.tar.zst freebsd-ports-gnome-21707743e7cc20a6fb40b7e3df309d68af929198.zip |
Fix a crash that can occur with an improperly formatted history file.
PR: 74522
Submitted by: kostik <kostik@ncport.ru>
Diffstat (limited to 'net-im/gnomeicu/files')
-rw-r--r-- | net-im/gnomeicu/files/patch-src_history.c | 14 |
1 files changed, 14 insertions, 0 deletions
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); + |