On Tue, Jan 25, 2005 at 10:38:39PM -0800, Ryan Murray wrote:
> read(5, 0xb7fe8000, 1024)               = -1 EIO (Input/output error)
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> 
> Apparently discover1 doesn't handle getting read errors too gracefully.

Check lib/ide.c:264; sscanf() on what could be a NULL pointer (since
getline() can fail). Add an "if (line)" and it should be okay.

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to