Package: gnoemoe
Version: 2.2.0+dfsg-2
Severity: important
Tags: patch

MCP crashes when submitting changes from MCP edit-sessions.

I wanted to install Gnoemoe on my wife's laptop to introduce her to
MUDs/MOOs/MUVEs, because Gnoemoe appears to be the simplest, most
straight-forward client provided by Debian, and includes MCP
editing-in-a-window, but this means that Gnoemoe isn't actually usable
for her.

So, I've traced this to a bug in which line-lengh is being incorrectly
calculated, and attached a patch that fixes the problem at the end of
this report.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnoemoe depends on:
ii  libart-2.0-2           2.3.20-1          Library of functions for 2D graphi
ii  libatk1.0-0            1.20.0-1          The ATK accessibility toolkit
ii  libbonobo2-0           2.22.0-1          Bonobo CORBA interfaces library
ii  libbonoboui2-0         2.22.0-1          The Bonobo UI library
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libcairo2              1.4.14-1          The Cairo 2D vector graphics libra
ii  libdbus-1-3            1.1.20-1          simple interprocess messaging syst
ii  libdbus-glib-1-2       0.74-1            simple interprocess messaging syst
ii  libfontconfig1         2.5.0-2           generic font configuration library
ii  libgconf2-4            2.22.0-1          GNOME configuration database syste
ii  libglade2-0            1:2.6.2-1         library to load .glade files at ru
ii  libglib2.0-0           2.16.1-2          The GLib library of C routines
ii  libgnome-keyring0      2.22.1-1          GNOME keyring services library
ii  libgnome2-0            2.20.1.1-1        The GNOME 2 library - runtime file
ii  libgnomecanvas2-0      2.20.1.1-1        A powerful object-oriented display
ii  libgnomeprint2.2-0     2.18.3-1          The GNOME 2.2 print architecture -
ii  libgnomeui-0           2.20.1.1-1        The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0         1:2.22.0-2        GNOME Virtual File System (runtime
ii  libgtk2.0-0            2.12.9-2          The GTK+ graphical user interface 
ii  libgtksourceview1.0-0  1.8.5-1           shared libraries for the GTK+ synt
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  libnotify1 [libnotify1 0.4.4-3           sends desktop notifications to a n
ii  liborbit2              1:2.14.12-0.1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0          1.20.2-2          Layout and rendering of internatio
ii  libpopt0               1.10-3            lib for parsing cmdline parameters
ii  libruby1.8             1.8.6.114-2       Libraries necessary to run Ruby 1.
ii  libsm6                 2:1.0.3-1+b1      X11 Session Management library
ii  libvte9                1:0.16.13-1       Terminal emulator widget for GTK+ 
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxcursor1            1:1.1.9-1         X cursor management library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxfixes3             1:4.0.3-2         X11 miscellaneous 'fixes' extensio
ii  libxft2                2.1.12-2          FreeType-based font drawing librar
ii  libxi6                 2:1.1.3-1         X11 Input extension library
ii  libxinerama1           2:1.0.3-1         X11 Xinerama extension library
ii  libxml2                2.6.31.dfsg-2     GNOME XML library
ii  libxrandr2             2:1.2.2-1         X11 RandR extension library
ii  libxrender1            1:0.9.4-1         X Rendering Extension client libra
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

gnoemoe recommends no packages.

-- no debconf information

--- gnoemoe-2.2.0+dfsg/gnoemoe/gm-world.c	2006-09-29 07:51:48.000000000 -0400
+++ gnoemoe-2.2.0+dfsg.rozzin/gnoemoe/gm-world.c	2008-04-20 15:43:03.000000000 -0400
@@ -845,7 +845,8 @@ gm_world_parse_legacy_editing_start(GmWo
 
 	einfo->is_editing = TRUE;
 	einfo->name = g_strndup(name_start + 6, (upload_start - name_start) - 6);
-	einfo->upload = g_strndup(upload_start + 9, (upload_start - line) + 9);	
+	einfo->upload = g_strndup(upload_start + 9,
+				  strlen(line) - (upload_start - line) - 9);
 	einfo->lines = NULL;
 }
 

Reply via email to