[ECOS] [Bug]mq_unlink does not correctly free the table entry

Jonathan Larmour jlarmour@redhat.com
Wed Oct 24 16:41:00 GMT 2001


I-Jui Sung wrote:
> 
> Hi eCos maintainers,
>     In the compat/posix/current/src/mqueue.cxx, I found a bug that would
> cause message queue table entry leaking.
> The problem is the do_mq_unlink() function only free the tabent->mq but not
> set it to NULL, while the mq_open() will only see entries which have
> tabent->mq be NULL as empty slot. Thus a previously unlinked entry will
> never be used again.
>     There's a quick fix: (also attached as mqueue.cxx.patch)

Thanks! I've applied this.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Ecos-discuss mailing list