﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
215	EMX ead* functions aborts with corrupted EAS	Yuri Dario	bird	"Calling _ead_read() on a file with corrupted EAS will crash the running program.

Debug shows that in src\lib\io\eadread.c the function:

static int _ead_make_gea (struct _ead_data *ead, PDENA2 pdena, void *arg)

is calling abort() for wrong name:

{{{
  if (pdena->szName[pdena->cbName] != 0)
    abort ();
}}}


Suggested fix is to return EINVAL or similar:

{{{
  if (pdena->szName[pdena->cbName] != 0)
    {
          errno = EINVAL;
          return -1;
    }
}}}

memory is freed by caller.

I cannot test the fix right now, but seems good to me.
"	defect	assigned	normal		libc-backend	0.6.2	normal		eas	
