[PATCH v3] debug: Fix read error handling in pcprofiledump

Andreas Schwab schwab@suse.de
Mon Sep 9 12:50:26 GMT 2024


On Sep 09 2024, Florian Weimer wrote:

> The reading loops did not check for read failures.  Addresses
> a static analysis report.
>
> Manually tested by compiling a program with the GCC's
> -finstrument-functions option, running it with
> “LD_PRELOAD=debug/libpcprofile.so PCPROFILE_OUTPUT=output-file”,
> and reviewing the output of “debug/pcprofiledump output-file”.

Ok.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list