summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-31 15:14:06 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-31 15:14:06 -0400
commit27593d3a357073cfd24e6b09e207b8c742cd2dd7 (patch)
treef8cfce047927f5f044cb600e10f36058adc4781e /arch
parentf8c376da9512c8c8a97781100aa04533740171d4 (diff)
downloadmusl-27593d3a357073cfd24e6b09e207b8c742cd2dd7.tar.gz
fix theoretical out-of-bound access in dynamic linker
one of the arguments to memcmp may be shorter than the length l-3, and memcmp is under no obligation not to access past the first byte that differs. instead use strncmp which conveys the correct semantics. the performance difference is negligible here and since the code is only use for shared libc, both functions are already linked anyway.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions