The middle and last bit flip fuzz verbs need to read the same bit that
they're trying to set.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
int nbits)
{
setbit_l((char *)buf, bitoff + nbits - 1,
- !getbit_l((char *)buf, bitoff));
+ !getbit_l((char *)buf, bitoff + nbits - 1));
return true;
}
int nbits)
{
setbit_l((char *)buf, bitoff + nbits / 2,
- !getbit_l((char *)buf, bitoff));
+ !getbit_l((char *)buf, bitoff + nbits / 2));
return true;
}