bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #31346] Segmentation fault in ascii driver


From: Ben Pfaff
Subject: PSPP-BUG: [bug #31346] Segmentation fault in ascii driver
Date: Fri, 22 Oct 2010 04:37:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)

Follow-up Comment #2, bug #31346 (project pspp):

The following patch:


diff --git a/src/output/ascii.c b/src/output/ascii.c
index c9f96b2..f2b5415 100644
--- a/src/output/ascii.c
+++ b/src/output/ascii.c
@@ -602,6 +602,8 @@ ascii_draw_line (void *a_, int bb[TABLE_N_AXES][2],
                                      styles[H][0], styles[H][1]);
   for (y = bb[V][0] + a->y; y < y1; y++)
     {
+      printf ("bb[H][0]=%d bb[H][1]=%d bb[V][0]=%d bb[V][1]=%d y=%d y1=%d
length=%dn",
+              bb[H][0], bb[H][1], bb[V][0], bb[V][1], y, y1, a->length);
       ascii_expand_line (a, y, x1);
       for (x = bb[H][0]; x < x1; x++)
         a->lines[y].chars[x] = value;


shows that the bb parameter to ascii_draw_line() is bogus:


...
bb[H][0]=36 bb[H][1]=37 bb[V][0]=0 bb[V][1]=1 y=38 y1=39 length=66
bb[H][0]=37 bb[H][1]=44 bb[V][0]=0 bb[V][1]=1 y=38 y1=39 length=66
bb[H][0]=44 bb[H][1]=45 bb[V][0]=0 bb[V][1]=1 y=38 y1=39 length=66
bb[H][0]=0 bb[H][1]=1 bb[V][0]=-2147483647 bb[V][1]=1 y=-2147483609 y1=39
length=66
...


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31346>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]