Bug 35654 - cproto crashed when I entered random text
cproto crashed when I entered random text
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: cproto (Show other bugs)
7.0
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-04-11 12:36 EDT by Nadav Har'El
Modified: 2014-03-16 22:20 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-04-11 12:36:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nadav Har'El 2001-04-11 12:36:41 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.16-22 i686)


I didn't know what cproto does (I confused it with cdecl, but that's
besides point), so I just entered a couple of random lines, and it crashed,
like this:
/home/nyh$ cproto
/* stdin */
a
hello
"stdin", line 2: syntax error at token 'hello'
zsh: segmentation fault  cproto

I know "a" and "hello" aren't very useful C instructions, but cproto should
not be crashing even in that case.

Reproducible: Always
Steps to Reproduce:
1. run cproto	 
2. type "a" and newline
3. type "hello" and newline
4. watch the fun.
	

Actual Results:  /home/nyh$ cproto
/* stdin */
a
hello
"stdin", line 2: syntax error at token 'hello'
zsh: segmentation fault  cproto


Expected Results:  Anything but a core dump...
Comment 1 Bill Nottingham 2001-06-12 15:35:27 EDT
Fixed in 4.6-8. Thanks!

Note You need to log in before you can comment on or make changes to this bug.