bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [musl] [ncurses] Segmentation Fault -- ungetmouse [confirmed]


From: Rich Felker
Subject: Re: [musl] [ncurses] Segmentation Fault -- ungetmouse [confirmed]
Date: Mon, 27 Mar 2017 08:15:59 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Mar 27, 2017 at 02:12:31PM +0200, A. Hopkins wrote:
> > Minimal Working Example of a program that segfaults on a musl system.
> > 
> >     #include <curses.h>
> >     int main()
> >     {
> >         initscr();
> >         MEVENT m;
> >         ungetmouse(&m);
> >     }
> > 
> > Regards.
> 
> I confirm that this segfaults.

Why would anyone expect it not to crash? You're passing a pointer to a
structure with indeterminate value to a function that will access it.

Rich



reply via email to

[Prev in Thread] Current Thread [Next in Thread]