commit | 27593d3a357073cfd24e6b09e207b8c742cd2dd7 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Jul 31 15:14:06 2013 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Jul 31 15:14:06 2013 -0400 |
tree | f8cfce047927f5f044cb600e10f36058adc4781e | |
parent | f8c376da9512c8c8a97781100aa04533740171d4 [diff] |
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.