public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mount segfaults with missing EOL in fstab
@ 2010-08-13 18:32 Vincent Rivière
  2010-08-13 19:11 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Rivière @ 2010-08-13 18:32 UTC (permalink / raw)
  To: cygwin

Hello.

I have just noticed that the mount utility segfaults when the last line 
of /etc/fstab is incorrectly terminated with a missing LF, even if it is 
a comment line.

$ mount -a
Segmentation fault (core dumped)

-- 
Vincent Rivière

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mount segfaults with missing EOL in fstab
  2010-08-13 18:32 mount segfaults with missing EOL in fstab Vincent Rivière
@ 2010-08-13 19:11 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2010-08-13 19:11 UTC (permalink / raw)
  To: cygwin

On Aug 13 20:32, Vincent Rivière wrote:
> Hello.
> 
> I have just noticed that the mount utility segfaults when the last
> line of /etc/fstab is incorrectly terminated with a missing LF, even
> if it is a comment line.
> 
> $ mount -a
> Segmentation fault (core dumped)

Thanks for the hint.  Due to a typo, mount accidentally dereferenced a
pointer which could be NULL.  Fixed in CVS.


Thanks again,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-13 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-13 18:32 mount segfaults with missing EOL in fstab Vincent Rivière
2010-08-13 19:11 ` Corinna Vinschen

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).