Opened 15 years ago
Closed 15 years ago
#999 closed defect (fixed)
r.mfilter.fp segfaults when divisor is 0
Reported by: | juliocc | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.0 |
Component: | Raster | Version: | unspecified |
Keywords: | mfilter segfault | Cc: | |
CPU: | All | Platform: | Unspecified |
Description
r.mfilter.fp segfaults when the divisor is 0 because of an error in getfilt.c.
I'm attaching a patch that fixes this problem.
Attachments (1)
Change History (7)
by , 15 years ago
Attachment: | getfilt.c.diff added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This patch breaks 6.4 compilation. There's no "div" in 6.4 and 6.5. Markus - please revert it.
grass_64/raster/r.mfilter $ make gcc -I/home/maris/soft/grass_64/dist.x86_64-unknown-linux-gnu/include -g -O2 -DPACKAGE=\""grassmods"\" -I/home/maris/soft/grass_64/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/getfilt.o -c getfilt.c getfilt.c: In function ‘get_filter’: getfilt.c:46: warning: format not a string literal and no format arguments getfilt.c:49: warning: format not a string literal and no format arguments getfilt.c:71: warning: format not a string literal and no format arguments getfilt.c:79: warning: format not a string literal and no format arguments getfilt.c:82: warning: format not a string literal and no format arguments getfilt.c:87: error: ‘div’ undeclared (first use in this function) getfilt.c:87: error: (Each undeclared identifier is reported only once getfilt.c:87: error: for each function it appears in.) getfilt.c:99: warning: format not a string literal and no format arguments getfilt.c:105: warning: format not a string literal and no format arguments getfilt.c:108: warning: format not a string literal and no format arguments getfilt.c:115: warning: format not a string literal and no format arguments getfilt.c:122: warning: format not a string literal and no format arguments getfilt.c:125: warning: format not a string literal and no format arguments getfilt.c:155: warning: format not a string literal and no format arguments make: *** [OBJ.x86_64-unknown-linux-gnu/getfilt.o] Error 1
comment:4 by , 15 years ago
comment:5 by , 15 years ago
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
Fix