hyperscan icon indicating copy to clipboard operation
hyperscan copied to clipboard

can we modify the data in ch or hs callback

Open ffashion opened this issue 3 years ago • 2 comments

if we memset the data, What impact will this have?

ffashion avatar Nov 16 '22 03:11 ffashion

for example, memset(ctx->data + from, '*' , to -from);

ffashion avatar Nov 16 '22 03:11 ffashion

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).

hongyang7 avatar Nov 16 '22 22:11 hongyang7