Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2023-05-13 06:43
Flavor·PCRE2 (PHP)

/
(\S+) = .*VOS_Malloc\(\S+, .*\);.*memset_s\s*\([^,]*\1[^,]*, ([^,]+), [^,]+, ([^,]+)\);
/
gms
Open regex in editor

Description

匹配malloc申请的内容和使用的不一致

Submitted by zyf