Details Ticket 3140


Comment | Reply | Take | Resolve


Serial Number 3140
Subject g.parser: SegFault
Area grass6
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status open
Last User Contact Sat Apr 9 05:28:47 2005 (3 yr ago)
Current Priority 20
Final Priority 70
Due No date assigned
Last Action Sun Apr 10 06:09:49 2005 (3 yr ago)
Created Tue Apr 5 11:12:51 2005 (3 yr ago)

Transaction History Ticket 3140


Tue, Apr 5 2005 11:12:51    Request created by hbowman  
Subject: g.parser: SegFault

I get a seg fault from the g.parser module if I have a stray 
#%option

in the script before the call to g.parser.

Obviously wrong syntax, but maybe it should fail in a more graceful manner...
Hamish
Sat, Apr 9 2005 05:28:47    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <16983.19430.810066.607524@gargle.gargle.HOWL>
Date Sat, 9 Apr 2005 04:28:38 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3140] (grass) g.parser: SegFault
In-Reply-To <20050405091251.B09F81005A3@lists.intevation.de>
References <20050405091251.B09F81005A3@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=3140

> Subject: g.parser: SegFault
> 
> I get a seg fault from the g.parser module if I have a stray 
> #%option
> 
> in the script before the call to g.parser.

What do you mean by "stray"? Without a "%key:" line?

> Obviously wrong syntax, but maybe it should fail in a more graceful manner...
My guess is that G_parser() dereferences the "key" field without
checking that it is non-NULL.

I suspect there are probably other ways in which you can construct
options which G_parser() won't like. I'm not sure how practical it is
to fix this in g.parser rather than G_parser() itself.

-- 
Glynn Clements <glynn@gclements.plus.com>


Sun, Apr 10 2005 06:09:49    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 10 Apr 2005 16:08:06 +1200
From Hamish <hamish_nospam@yahoo.com>
To Glynn Clements <glynn@gclements.plus.com>
Cc grass-bugs@intevation.de, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3140] (grass) g.parser: SegFault
Message-Id <20050410160806.1b013cd5.hamish_nospam@yahoo.com>
In-Reply-To <16983.19430.810066.607524@gargle.gargle.HOWL>
References <20050405091251.B09F81005A3@lists.intevation.de> <16983.19430.810066.607524@gargle.gargle.HOWL>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=3140
> 
> > Subject: g.parser: SegFault
> > 
> > I get a seg fault from the g.parser module if I have a stray 
> > #%option
> > 
> > in the script before the call to g.parser.
> 
> What do you mean by "stray"? Without a "%key:" line?

Without #%end even. I commented out an option but missed the first line.
Thus just a #%option line by itself before the g.parser call.

 
> > Obviously wrong syntax, but maybe it should fail in a more graceful
> > manner...
> 
> My guess is that G_parser() dereferences the "key" field without
> checking that it is non-NULL.
> 
> I suspect there are probably other ways in which you can construct
> options which G_parser() won't like. I'm not sure how practical it is
> to fix this in g.parser rather than G_parser() itself.

Suggested priority = low.



Hamish


Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request