You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My assumption is, that there is a lot of undefined behavior in this code.
We could talk about fuzzing, porting C code, performance benchmarks and more.
How?
Create a naive implementation of strstr in Rust.
Benchmark it against the existing C version.
Port the C strstr version verbatim to Rust.
Run afl (fuzzing) against it to check for edge-cases.
What?
https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strstr.c;hb=9d13fb2413921c713f83efe331e8e4d219c62c6b#l21
Why?
My assumption is, that there is a lot of undefined behavior in this code.
We could talk about fuzzing, porting C code, performance benchmarks and more.
How?
strstr
in Rust.strstr
version verbatim to Rust.Thanks for the inspiration @jorgelbg.
The text was updated successfully, but these errors were encountered: