[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Eternal loop in quick_hash

From: Oddvar Kloster <Oddvar.Kloster_at_sintef.no>
Date: Wed, 13 Oct 2010 15:42:25 +0200

The latest nightly is acting up on me and freezing frequently. There may be other reasons too, but I’ve traced one cause of a freeze.

If one creates an empty quick_hash and inserts a single element using the iterator range insert method (QuickHash.h, 406), the hash does not grow to more than 1 in capacity, which is then filled. The causes the next find() to stick in an endless loop.
I suspect that size() on line 410 should be capacity() instead.

Oddvar

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2671249

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-10-13 15:45:27 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.