mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-07 13:45:07 -05:00
tests: Update valgrind suppressions for sw_tree1
This test builds a tree in a previously uninitialized buffer, then writes the whole buffer out to a file to be used by other tests. Because part of the buffer may be uninitialized this causes a valgrind error. Pre-initializing the buffer would remove the error, however it would make valgrind not notice any accesses to the uninitialized portion *before* the write out, and those would be genuine errors. So, instead we use a valgrind suppressions file - however it has a couple of problems. First it unnecessarily lists the same call path twice. Second, the call path is only right for some C library versions. Change the second copy to cover possible path that occurs with a different glibc version. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
02c5fe9deb
commit
14a3002a1a
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
allocation methods causes uninitialized data in alignment gap
|
allocation methods causes uninitialized data in alignment gap
|
||||||
Memcheck:Param
|
Memcheck:Param
|
||||||
write(buf)
|
write(buf)
|
||||||
fun:__write_nocancel
|
fun:write
|
||||||
fun:utilfdt_write_err
|
fun:utilfdt_write_err
|
||||||
fun:save_blob
|
fun:save_blob
|
||||||
fun:main
|
fun:main
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue