Since initial was declared to be uint32_t, the conversion of the
argument should likewise be converted to uint32_t. size_t converts
it to 8-bytes, which will not fit into 4-bytes.
probe_initial should be set to false by default to prevent the
current bug. The current bug causes the program to ignore the user
specified value --initial x and bruteforce crc seeds.
The extra byte output is a typical fence post problem. Fixed with
this PR.
Fixes #4. Fixes #5.
Since
initial
was declared to beuint32_t
, the conversion of the argument should likewise be converted touint32_t
.size_t
converts it to 8-bytes, which will not fit into 4-bytes.probe_initial
should be set to false by default to prevent the current bug. The current bug causes the program to ignore the user specified value--initial x
and bruteforce crc seeds.The extra byte output is a typical fence post problem. Fixed with this PR.
Signed-off-by: Solomon Tan solomonbstoner@yahoo.com.au