aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-07 00:30:54 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-07 00:30:54 +0800
commitf7f5a3032f47f7a6bae37607717b9fb6e8c0a26b (patch)
treec8f4f35fd54e59552a385f76d5e7f0429ca13ac6
parent2024ff43f5ac563297315bc7a3e890cc3cce2d0a (diff)
downloadgsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.gz
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/ChangeLog5
-rw-r--r--e-util/ename/e-address-western.c2
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. */
13-evolution/commit/?h=GTKHTML_3_1_7&id=533abeb00f0777da365e3609d4335394680ffeaf'>Automagically call camel_shutdown() atexit() ;-) (camel_init): AlsoJeffrey Stedfast2001-04-273-16/+25 * helps to spell right ;-)Jeffrey Stedfast2001-04-271-1/+1 * Added Next/Previous toolbar buttons.Jeffrey Stedfast2001-04-272-1/+20 * Replace "<" by "<=" in the comparison for due dates against the currentFederico Mena Quintero2001-04-273-3/+17 * Don't filter on Seen status. (previous_msg): Same. (next_unread_msg): NewJeffrey Stedfast2001-04-273-2/+30 * Set the default size of the dialog to 600x400, which seems to be a niceJeffrey Stedfast2001-04-272-2/+12 * Updated to use camel-file-util routines. (hide_save_1): Same.Jeffrey Stedfast2001-04-272-17/+31 * Merge fix from the 0.10 branch:Ettore Perazzoli2001-04-272-1/+6 * Merge build fix from the branch:Ettore Perazzoli2001-04-272-0/+5 * Updated Swedish translation again.Christian Rose2001-04-272-138/+150 * Make the Solaris and no-gethostbyname_r implementations behave more likeDan Winship2001-04-272-4/+24 * #include <sys/types.h> for off_t.Jeffrey Stedfast2001-04-272-0/+5 * #include "nss.h" rather than <nss.h> due to the non-mozilla nss.h file living...Jeffrey Stedfast2001-04-271-2/+3 * Check for gethostbyname_r so e_gethostbyname_r will DTRT.Dan Winship2001-04-272-1/+5 * New file, with the int, string, time_t, and off_t encode/decode routinesDan Winship2001-04-279-363/+447 * this shouldn't have been here (at least not containing ".deps")Dan Winship2001-04-271-1/+0 * Remove UNICODE_LIBSDan Winship2001-04-273-2/+7 * Remove UNICODE_CFLAGS (libeutil_la_LIBADD): Change UNICODE_LIBS toDan Winship2001-04-272-2/+6 * We no longer depend on libunicode.Dan Winship2001-04-273-21/+19 * Remove UNICODE_CFLAGS (and some other stuff that's redundant withDan Winship2001-04-2713-103/+83 * Add GAL_LIBS for gunicode stuff (until glib 2.0) (INCLUDES): UseDan Winship2001-04-276-736/+35 * Use e_gethostbyname_r. (camel_service_gethost): Remove unused var.Dan Winship2001-04-272-9/+8 * Remove UNICODE_CFLAGSDan Winship2001-04-266-4/+10 * Use <font color=...> to mark citations rather than italicizing them, whichDan Winship2001-04-262-4/+17 * UpdateKjartan Maraas2001-04-262-0/+2 * Update this a bitKjartan Maraas2001-04-262-12/+12 * Updated Ukrainian transaltionYuri Syrota2001-04-261-56/+35 * Updated Ukrainian transaltionYuri Syrota2001-04-261-45/+19 * Updated Ukrainian transaltionYuri Syrota2001-04-261-132/+69 * Added "MessageSearch" verb.Jon Trowbridge2001-04-269-2/+348 * Updated Ukrainian transaltionYuri Syrota2001-04-261-85/+50 * Updated Swedish translation.Christian Rose2001-04-262-713/+860 * Blah blah fix for xml1 broken utf8 encoding, and use "g" memory for allNot Zed2001-04-262-16/+36 * Applied jacob's patches for e-poolv stuff.Not Zed2001-04-267-67/+122 * Modified to match e_strv_get behaviour. Assert on bad cases, and return ""Not Zed2001-04-263-6/+362 * Removed generated files from CVS, updated .cvsignore files to includeJon Trowbridge2001-04-2638-3396/+282 * Remove this section, which doesn't apply to anything since there are noDan Winship2001-04-265-24/+12 * Remove $(UNICODE_LIBS).Dan Winship2001-04-263-3/+6 * Remove call to unicode_init.Dan Winship2001-04-262-3/+5 * free the private memberJP Rosevear2001-04-262-1/+5 * block/unblock redrawRadek Doulik2001-04-262-0/+9 * Add the header height to the returned y location here so that things willChristopher James Lahey2001-04-261-1/+3 * Made this return -1 instead of -2 for not found if the root is notChristopher James Lahey2001-04-262-3/+8 * One-line fix (missing a 'break' at the end of the ARG_SELECTION_MODELJason Leach2001-04-251-0/+1 * Updated Ukrainian transaltionYuri Syrota2001-04-251-3225/+5791 * New foot-shooting-prevention helper function. (edit_msg_internal,Dan Winship2001-04-252-0/+36 * signature changingRadek Doulik2001-04-255-32/+36 * signature changingRadek Doulik2001-04-256-65/+142 * #include <glib.h> and move corresponding local includes to the top.Kjartan Maraas2001-04-2527-25/+62 * Updated Norwegian translation. Major overhaul.Kjartan Maraas2001-04-253-836/+991 * Updated Swedish translation.Christian Rose2001-04-252-767/+992 * Fixed Strftime so it uses the locale prefered way to display date/time.Duncan Mak2001-04-252-1/+7 * Added a new signal, "message_loaded" that gets emitted when the messageJeffrey Stedfast2001-04-254-13/+59 * If the buffer is too small, making it twice as big does not guarantee itDan Winship2001-04-252-16/+23 * Updated Spanish translation.Hector Garcia2001-04-252-352/+407 * Add accelerators to the context menu. (on_right_click): UseDan Winship2001-04-253-28/+73 * Bump up the gal requirementDan Winship2001-04-252-1/+5 * Updated russian translation.Valek Frob2001-04-242-480/+548 * Updated tr.poFatih Demir2001-04-242-611/+835 * UpdateKjartan Maraas2001-04-241-2/+3 * Added #include <glib.h> and moved corresponding local headers to the top.Kjartan Maraas2001-04-247-10/+30 * Added #include <glib.h>.Kjartan Maraas2001-04-243-1/+9 * Added #include <glib.h> and move corresponding local headers to the top toKjartan Maraas2001-04-246-8/+17 * remove prototype for e_gethostbyname_init.Chris Toshok2001-04-243-41/+43 * Removed attempts to use Radek's evil <DATA> hacks, which were just causingJon Trowbridge2001-04-248-145/+294 * Documented this function properly.Christopher James Lahey2001-04-243-118/+159 * Added get_cell_geometry method.Christopher James Lahey2001-04-248-9/+122 * Add camel-vee-folder.h and camel-digest-folder.hJeffrey Stedfast2001-04-242-0/+4 * New class that can be used to browse a multipart/digest message as if itJeffrey Stedfast2001-04-245-1/+366 * Changed dependency for install-data-local from "evolution" toJon Trowbridge2001-04-244-2/+12 * Include glib.h, so that the g_warning in e_gethostbyname_r will be treatedJon Trowbridge2001-04-242-0/+7 * #include gnome-window-icon.hJeffrey Stedfast2001-04-242-0/+5 * Added mail/message-browser.c and removed mail/mail-view.cJeffrey Stedfast2001-04-242-1/+6 * Use the message-browser widget rather than the mail-view window.Jeffrey Stedfast2001-04-2411-267/+425 * Port builddir != srcdir patch from the evolution-0-10-branch.Ettore Perazzoli2001-04-2412-14/+40 * Added #include <stdlib.h>.Christopher James Lahey2001-04-241-0/+1 * Made it so that if a message is from the last 8 hours, it only prints theChristopher James Lahey2001-04-241-5/+21 * Make pixbuf columns show their title if there is space.Christopher James Lahey2001-04-241-2/+23 * Remove UNICODE_CFLAGS (e_text_test_LDADD, e_entry_test_LDADD,Dan Winship2001-04-241-43/+42 * Updated Norwegian translation.Kjartan Maraas2001-04-242-798/+1127 * remove UNICODE_CFLAGSDan Winship2001-04-241-21/+20 * bump to 0.7.99.1, add gal/unicode/Makefile. gal no longer internallyDan Winship2001-04-242-52/+53 * Append a "/" to the result of g_get_home_dir so gets the default dir itDan Winship2001-04-242-2/+9 * Re-commit ChangeLog.Ettore Perazzoli2001-04-242-4/+0 * Documentation building fixes merged from the evolution-0-10-branch:Ettore Perazzoli2001-04-2413-38/+76 * Updated translationMatthias Warkus2001-04-232-628/+673 * Updated Hungarian translation (andras)Szabolcs Ban2001-04-232-1088/+768 * add e-host-utils.[ch]Chris Toshok2001-04-234-0/+188 * ugh, don't bother checking if the header values are non-NULL - it doesn't hur...Jeffrey Stedfast2001-04-232-14/+3 * Only set the X-Evolution-* header if that value is non-NULL.Jeffrey Stedfast2001-04-233-12/+33 * We need to link in more than just libnspr4, we also need libpthread.Jeffrey Stedfast2001-04-232-3/+9 * Make sure we have a context before we try and use it.Jeffrey Stedfast2001-04-232-2/+10 * Oops, don't use the return value of iconv() as a string length, it onlyJeffrey Stedfast2001-04-233-3/+10 * Changed GTK_INCLUDEDIR to EXTRA_GNOME_CFLAGS.Mikael Hallendal2001-04-232-1/+6 * Added save_source_data here.Christopher James Lahey2001-04-222-0/+7 * Translations from keldKeld Jørn Simonsen2001-04-221-2495/+2584 * translate "Things to do" etc. and convert them to utf8. Changed some linkGediminas Paulauskas2001-04-222-13/+24 * use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. RenameGediminas Paulauskas2001-04-228-34/+41 * Set window_icon of the Composer window to be compose-message.pngDuncan Mak2001-04-222-1/+10 * Set window_icon of the splash screen to "evolution.png"Duncan Mak2001-04-222-0/+6 * Added in "compose-messages.png" in the Makefile of evolution/artDuncan Mak2001-04-222-0/+5 * Properly convert to utf8. (Bug #2256) (build_quick_add_dialog): ProperlyJon Trowbridge2001-04-223-12/+46 * Translations from KeldKenneth Christiansen2001-04-22