hyperscan
hyperscan copied to clipboard
can we modify the data in ch or hs callback
if we memset the data, What impact will this have?
for example, memset(ctx->data + from, '*' , to -from);
We suggest not to modify the input buffer, as hyperscan may do reverse scan over input data, especially in SOM mode (when HS_FLAG_SOM_LEFTMOST flag is set).