wmkhoo / taintgrind

A taint-tracking plugin for the Valgrind memory checking tool
GNU General Public License v2.0
249 stars 42 forks source link

Binary program is displayed in stain log record, not source program #44

Closed songxpu closed 3 years ago

songxpu commented 3 years ago

Hello, I am using taintgrind to test Wakaama, but found that the taint data location information obtained is not the source program: line number, but the binary program.So I am very confused. image

In fact, the function output_buffer() appears in the main function of ./wakaama/examples/server/lwm2mserver.c image

So, what causes this phenomenon?

My command line is:


sudo ./valgrind-3.17.0/build/bin/valgrind --tool=taintgrind --taint-network=yes --trace-children=yes --log-file=/home/user/taintgrind_lwm2m.txt ./lwm2mserver
songxpu commented 3 years ago

Oh, I see. Do I have to add "-g" at compile time ?

wmkhoo commented 3 years ago

Yes. If you want to see the source file and line number.