Bug 27182

Summary: Crash on non-existent target.
Product: Orc Reporter: Ramiro Polla <ramiro.polla>
Component: OrcAssignee: David Schleef <ds>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Ramiro Polla 2010-03-18 12:08:14 UTC
$ orcc --target nonexistenttarget --assembly -o x.c x.orc
Segmentation fault
Comment 1 David Schleef 2010-03-18 14:34:45 UTC
Ugh, oops.  I have a fix committed locally, will push soon.
Comment 2 David Schleef 2010-03-18 14:35:57 UTC
(And hey, it would be a good idea to print the list of included targets, too.)
Comment 3 David Schleef 2010-03-18 16:46:48 UTC
I'm going to leave this bug report open, since I know there are a bunch more obvious ways to segfault orcc with incorrect input.  A reminder to work on that.


commit f0aa1d3e756afd5df37743b145b35805b2731d23
Author: David Schleef <ds@schleef.org>
Date:   Thu Mar 18 14:21:10 2010 -0700

    tools: Check target name

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.