Bug 27182 - Crash on non-existent target.
Summary: Crash on non-existent target.
Status: NEW
Alias: None
Product: Orc
Classification: Unclassified
Component: Orc (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Schleef
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 12:08 UTC by Ramiro Polla
Modified: 2010-03-18 16:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.