Regular Expressions 101

Community Patterns

4

import url image

Python
import url image
Submitted by bartimeys - 8 years ago

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

1

Regular Expression
PCRE2 (PHP >=7.3)

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

Description

Loading markdown...
Submitted by zyf - 4 months ago