WojciechMula / sse4-strstr

SIMD (SWAR/SSE/SSE4/AVX2/AVX512F/ARM Neon) of Karp-Rabin algorithm's modification
http://0x80.pl/articles/simd-strfind.html
BSD 2-Clause "Simplified" License
237 stars 27 forks source link

Is this unititialised variable'use intended? #16

Open jeanga opened 2 years ago

jeanga commented 2 years ago

Hi!

I am trying to use and (somewhat) understand you sse4-strstr code and come across this: https://github.com/WojciechMula/sse4-strstr/blob/9cdc4b6df817c8a8c67a1cebdc7e18a1da35f407/avx2-strstr-v2.cpp#L62

Is this use of uninitialized next1 intended?

Thanks!