URL:
<http://gna.org/patch/?4729>
Summary: genhash: calculate hash values with the number of
buckets
Project: Freeciv
Submitted by: pepeto
Submitted on: Thu 29 May 2014 12:16:21 AM CEST
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: pepeto
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0
_______________________________________________________
Details:
Do not assume the hash functions of the caller will match the number of
buckets. Currently, if the function returns a negative value or a value
greater than the number of buckets, the program will read or write to
unsuitable locations.
Move the modulo in genhash module.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 29 May 2014 12:16:21 AM CEST Name: 0001-num_buckets-internal.patch
Size: 7kB By: pepeto
<http://gna.org/patch/download.php?file_id=20832>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?4729>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev