Bug in pbsdbd hash function?

Diego Chaparro González <[email protected]>
Newsgroups gmane.mail.qmail.ldap
Message-ID <94B66482EFED7D41A2331D89B0B0F0572177ECC790@EXCORPMBX1.macorp.acens.priv>
[cid:[email protected]]<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]<mailto:[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.
acens_mail_g.gif (image/gif, 5.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.