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

Bug#292224: Bug#291722: clone 291722, reassign 292224 to discover1



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/



Reply to: