mirror of
https://github.com/git/git.git
synced 2024-11-01 06:47:52 +01:00
b406a2d3e3
Some versions of strlen use SSE to speed up the calculation and load 4 bytes at a time, even if it means reading past the end of the allocated memory. This read is safe and when the strlen function is inlined, it is not replaced by valgrind, which reports a false-possitive. Tell valgrind to ignore this particular error, as the read is, in fact, safe. Current upstream-released version 3.6.1 is affected. Some distributions have this fixed in their latest versions. Signed-off-by: Carlos Martín Nieto <cmn@elego.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
51 lines
581 B
Text
51 lines
581 B
Text
{
|
|
ignore-zlib-errors-cond
|
|
Memcheck:Cond
|
|
obj:*libz.so*
|
|
}
|
|
|
|
{
|
|
ignore-zlib-errors-value8
|
|
Memcheck:Value8
|
|
obj:*libz.so*
|
|
}
|
|
|
|
{
|
|
ignore-zlib-errors-value4
|
|
Memcheck:Value4
|
|
obj:*libz.so*
|
|
}
|
|
|
|
{
|
|
ignore-ldso-cond
|
|
Memcheck:Cond
|
|
obj:*ld-*.so
|
|
}
|
|
|
|
{
|
|
ignore-ldso-addr8
|
|
Memcheck:Addr8
|
|
obj:*ld-*.so
|
|
}
|
|
|
|
{
|
|
ignore-ldso-addr4
|
|
Memcheck:Addr4
|
|
obj:*ld-*.so
|
|
}
|
|
|
|
{
|
|
writing-data-from-zlib-triggers-even-more-errors
|
|
Memcheck:Param
|
|
write(buf)
|
|
obj:/lib/ld-*.so
|
|
fun:write_in_full
|
|
fun:write_buffer
|
|
fun:write_loose_object
|
|
}
|
|
|
|
{
|
|
ignore-sse-strlen-invalid-read-size
|
|
Memcheck:Addr4
|
|
fun:copy_ref
|
|
}
|