Re: Bug in pbsdbd hash function?
Edward Capriolo <[email protected]>
| Newsgroups | gmane.mail.qmail.ldap |
|---|---|
| Message-ID | <[email protected]> |
Is there still a bounty out for bugs ? :) http://www.gossamer-threads.com/lists/qmail/users/133800 2010/6/25 Diego Chaparro González <[email protected]> > [image: acens - the hosting company] <http://www.acens.com> > > > > Hi, > > > > We have been using pbsdbd for years without any problem, > but some days ago it started to fail with the next message: > > > > “pbsdbd: fatal: cache corrupted” > > > > After analyzing the source code, we found that hash > function in pbsdbd.c returns 0 for some IP addresses, which causes above > message and makes pbsdbd to die and start again with an empty table. It can > be reproduced inserting twice, for example next IP: 4.214.93.234. > > > > The probability to get a 0 in the hash function is low, > about 0.00037% over 2^32 IP addresses, but it’s a real problem if one of > your clients has one of these addresses. > > > > Have you ever had this problem? Do you know any way to fix > it? > > > > Thanks in advance. > > Diego Chaparro González > Departamento de Sistemas > acens Technologies S.L. > > [email protected] > Teléfono: 902 114 098 > Fax: 911 418 501 > > Este mensaje puede contener información confidencial dirigida > exclusivamente a su destinatario. > No se permite su copia o distribución sin la autorización expresa y por > anticipado de acens. > Si recibió este mensaje por error, por favor, comuníquelo al emisor y > elimínelo de su ordenador. Gracias. > > This message may contain confidential information exclusively addressed to > its intended recipient. > The copy or distribution of this message is not permitted without the prior > express consent by acens. > If you are not the intended recipient of this message please advise the > sender and delete it. Thank you. >