Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

[milter-greylist] crash of milter-greylist process due to stack corruption

2015-06-03 by Bruncsak, Attila

Hello,

At the end I got a usable core dump to figure out the reason
of the long standing problem of milter-greylist process crash.

In the function sync_waitdata() the value of "fd" is not checked
against of FD_SETSIZE. It must have a value smaller than that.

Please apply the patch attached to that message.

While I was debugging I found code which seemingly left over
(pthread_mutex_(init|lock) on an auto variable in a thread,
which is nowhere else referred to) 
and I could optimize out one member of the struct sync (s_peer).
It is not needed since each peer has his own private sync list.

Best,
Attila

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.