mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
749aac72ad
remove unsafe and unnecessary cast. until now, this cast may lead segmentation fault when end > UINT_MAX setbit foo 0 1 bitcount 0 4294967295 => ok bitcount 0 4294967296 => cause segmentation fault. Note by @antirez: the commit was modified a bit to also change the string length type to long, since it's guaranteed to be at max 512 MB in size, so we can work with the same type across all the code path. A regression test was also added. |
||
---|---|---|
.. | ||
assets | ||
helpers | ||
integration | ||
support | ||
tmp | ||
unit | ||
test_helper.tcl |