musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/regex/regexec.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014年09月05日 13:52:20 -0400
committerRich Felker <dalias@aerifal.cx>2014年09月05日 13:52:20 -0400
commit633183b5d1c298e4335da841926efe96252057b3 (patch)
tree06e24aa9b6b09b54c73db2741204678d4c8317ef /src/regex/regexec.c
parent4ec2d25a6aba30781640b84160002ed3e7fee051 (diff)
downloadmusl-633183b5d1c298e4335da841926efe96252057b3.tar.gz
fix potential read past end of buffer in getnameinfo service name lookup
if the loop stopped due to reaching the end of the string, the subsequent increment could possibly move the position one past the end of the buffer. no further writes happen, the reads cannot fault anyway unless the stack completely lacks any zero bytes, and reading junk should not yield an incorrect result from the function either. nonetheless the code was wrong and needs to be fixed.
Diffstat (limited to 'src/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月23日 12:24:37 +0000

AltStyle によって変換されたページ (->オリジナル) /