This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Bug]mq_unlink does not correctly free the table entry


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]