Package: ivtools
Version: 1.1.3-5.3
Severity: important
Tags: patch

Steps to reproduce on an amd64 machine.

1) start comdraw
2) type 'help' in the ComEditor pane, followed by key <enter>.
3) observe the crash.

Patch:

--- ivtools-1.1.3.orig/src/ComTerp/comterp.c
+++ ivtools-1.1.3/src/ComTerp/comterp.c
@@ -165,7 +166,9 @@
                         &_pfbuf, &_pfsiz, &_pfnum);

     _pfoff = 0;
-    return status==0 && _pfbuf[_pfnum-1].type != TOK_EOF && _buffer[0] != '\0';
+    return status==0
+      && (_pfnum==0 || _pfbuf[_pfnum-1].type != TOK_EOF)
+      && _buffer[0] != '\0';
 }

 boolean ComTerp::eof() {



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to