diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-07 00:30:54 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-07 00:30:54 +0800 |
commit | f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b (patch) | |
tree | c8f4f35fd54e59552a385f76d5e7f0429ca13ac6 | |
parent | 2024ff43f5ac563297315bc7a3e890cc3cce2d0a (diff) | |
download | gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.gz gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.bz2 gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.lz gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.xz gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.zst gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.zip |
Made this refuse to parse more than 2047 characters of address.
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* ename/e-address-western.c (e_address_western_parse): Made this
refuse to parse more than 2047 characters of address.
svn path=/trunk/; revision=13484
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/ename/e-address-western.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 258477a117..6de73344ba 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2001-10-06 Christopher James Lahey <clahey@ximian.com> + + * ename/e-address-western.c (e_address_western_parse): Made this + refuse to parse more than 2047 characters of address. + 2001-10-04 Dan Winship <danw@ximian.com> * e-passwords.c (e_passwords_add_password): Make this dup the diff --git a/e-util/ename/e-address-western.c b/e-util/ename/e-address-western.c index 88b501497e..f2200a9dba 100644 --- a/e-util/ename/e-address-western.c +++ b/e-util/ename/e-address-western.c @@ -326,7 +326,7 @@ e_address_western_parse (const gchar *in_address) eaw->postal_code = NULL; eaw->country = NULL; - address = g_strdup (in_address); + address = g_strndup (in_address, 2047); /* The first thing I'll do is divide the multiline input string into lines. */ |