public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
From: kseitz@sources.redhat.com
To: fabien@obs.univ-lyon1.fr, insight-prs@sourceware.cygnus.com,
	kseitz@sources.redhat.com, nobody@sourceware.cygnus.com
Subject: Re: insight/93: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!!
Date: Fri, 04 Jan 2002 14:01:00 -0000	[thread overview]
Message-ID: <20020104220105.26058.qmail@sources.redhat.com> (raw)

Synopsis: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!!

Responsible-Changed-From-To: unassigned->kseitz
Responsible-Changed-By: kseitz
Responsible-Changed-When: Fri Jan  4 14:01:04 2002
Responsible-Changed-Why:
    got it
State-Changed-From-To: open->closed
State-Changed-By: kseitz
State-Changed-When: Fri Jan  4 14:01:04 2002
State-Changed-Why:
    Um.. Look at your program. It is doing exactly what it should be doing.
    
    You're opening "toto.txt". When that file is not found, fopen returns NULL, which is then blindly passed to feof, which segfaults on the NULL.
    
    What do you expect to happen? On my Red Hat linux 7.0 box, your program also crashes (with or without Insight).

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=93&database=insight


             reply	other threads:[~2002-01-04 22:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-04 14:01 kseitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-06-23  7:43 fabien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020104220105.26058.qmail@sources.redhat.com \
    --to=kseitz@sources.redhat.com \
    --cc=fabien@obs.univ-lyon1.fr \
    --cc=insight-prs@sourceware.cygnus.com \
    --cc=nobody@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).