Files
u-boot-bpi-r3/lib
Roman Kapl 9dfdbd9f0c hashtable: fix environment variable corruption
Only first previously deleted entry was recognized, leading hsearch_r
to think that there was no previously deleted entry. It then conluded
that a free entry was found, even if there were no free entries and it
overwrote a random entry.

This patch makes sure all deleted or free entries are always found and
also introduces constants for the 0 and -1 numbers. Unit tests to excersise a
simple hash table usage and catch the corruption were added.

To trash your environment, simply run this loop:

setenv i 0
while true; do
    setenv v_$i $i
    setenv v_$i
    setexpr i $i + 1
done

Signed-off-by: Roman Kapl <rka@sysgo.com>
2019-02-09 07:50:54 -05:00
..
2018-12-03 10:44:10 -05:00
2011-01-18 23:38:08 +01:00
2017-04-13 09:41:10 -04:00
2018-06-13 07:49:12 -04:00
2019-01-18 09:16:15 -05:00
2019-02-02 08:19:17 -05:00
2012-04-29 14:14:08 +02:00
2018-09-05 16:02:34 -04:00
2018-11-20 19:14:22 -07:00