Opened 14 years ago

Last modified 8 years ago

#970 new defect

r.report seg faults on small page width values — at Initial Version

Reported by: epatton Owned by: grass-dev@…
Priority: minor Milestone: 6.4.6
Component: Raster Version: svn-develbranch6
Keywords: r.report, page width, segmentation fault Cc:
CPU: x86-64 Platform: Linux

Description

r.report seg faults when passed small values of page width values. From the NC test dataset, the elevation raster creates the seg fault on 23 characters, and an infinite loop with 24 characters:

r.report -h map=elevation pw=23
 100%
+---------------------+
|Category Information |
|                    #|description                                  |
|---------------------|
|104.966573-105.361675|from  to �
'@�?@�h0�h��h`�h@�h�����'�Yc4@/�~F�'@4@���V
      Al
        A@k#A�K#A�?�����Segmentation fault

gdb backtrace:

gdb -q r.report
Reading symbols from /usr/local/grass-6.5.svn/bin/r.report...done.
(gdb) run map=elevation pw=23
# lots of binary gibberish printed, then:
Program received signal SIGSEGV, Segmentation fault.
print_label (s=0x629000 <Address 0x629000 out of bounds>, len=<value optimized out>, pflag=1, spacing=0, dot=<value optimized out>) at label.c:46
46		    putchar(*s);
(gdb)

~ Eric.

Change History (0)

Note: See TracTickets for help on using tickets.