summaryrefslogtreecommitdiff
path: root/sys/src/libregexp/rregexec.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-06-24 19:18:37 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-06-24 19:18:37 +0200
commitd7613e356c55a3b7a1140a1f6d8aa6dca43b9d97 (patch)
tree1c59d6309a5b6e26dad464d98e48bce62c2bad65 /sys/src/libregexp/rregexec.c
parent1e8eb61a3715b12d8bc1cfd866f5bb180f2941f2 (diff)
upas/fs: use memchr() instead of strchr() in hdrlen()
make sure we look for the end of the header within the pointer range, and not accidentally read beyond hend. also, messages are not null terminated, so this could even go beyond the email data buffer. get rid of mimeflag which was only used for some assert checks. take header length into account when comparing header against ignored header strings.
Diffstat (limited to 'sys/src/libregexp/rregexec.c')
0 files changed, 0 insertions, 0 deletions