test: fix out-of-bound reads from invalid sizeof usage
sizeof(data)
does not return the correct result here, as it measures
the size of the data
variable, not what it points to.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines