|
|
Message-ID: <20170327121559.GK17319@brightrain.aerifal.cx>
Date: Mon, 27 Mar 2017 08:15:59 -0400
From: Rich Felker <dalias@...c.org>
To: "A. Hopkins" <hopk1ns@....com>
Cc: bug-ncurses@....org, musl@...ts.openwall.com
Subject: Re: [ncurses] Segmentation Fault -- ungetmouse [confirmed]
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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.