From QEMU Headache to Headless

馃樃 TL;DR Being lazy, I made a tool to run qcow2 images for my convenience. Feel free to use it if you find useful! 馃摉 The back story If you鈥檝e ever typed qemu-system-x86_64 into your terminal, you know the feeling. A creeping dread. A cold sweat. The QEMU headache. It鈥檚 that special migraine reserved for developers who know they鈥檙e about to spend the next ten minutes deciphering their own shell history to remember that one magic flag for networking. ...

September 11, 2025 路 Andrea Manzini

How much code are you testing ? (3)

鈻讹笍 Intro : Let Me Be On the previous post we continued our journey with a more complex scenario, using a mix of gdb and valgrind to trace all the function execution inside a given binary. This time, hold on because we鈥檙e cranking up the complexity. We鈥檒l dive deeper into low-level analysis and explore how to use Intel PIN, a powerful dynamic instrumentation framework for manipulating and inspecting executable code at runtime. (Photo by FURQAN KHURSHID) ...

June 17, 2025 路 Andrea Manzini

How much code are you testing ? (2)

鈻讹笍 Intro On the previous post we started our journey with a very simple scenario, and we used a nice feature of the Go programming language to get a measure of how much % of the target program our test is exercising. This time I am going to experiment a Proof of Concept about how we can obtain a test code coverage metric estimation for a normal binary program, without any recompilation. ...

March 30, 2025 路 Andrea Manzini

How much code are you testing ? (1)

鈽傦笍 Intro When your code includes a suite of unit tests, code coverage is an important metric to measure the test effectiveness and it鈥檚 rather easy to obtain; there are plenty of tools around. Image credits to: Nataliya Vaitkevich On the other hand, often we also need to do integration or E2E testing, as in our QA journey we are mostly running real world programs instead of single well-chosen functions. Let鈥檚 start with a basic use case, and prepare a simple program tailored for this purpose. ...

February 23, 2025 路 Andrea Manzini