]> sourceware.org Git - glibc.git/commit
debug: Fix read error handling in pcprofiledump
authorFlorian Weimer <fweimer@redhat.com>
Tue, 10 Sep 2024 10:40:27 +0000 (12:40 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 10 Sep 2024 10:40:27 +0000 (12:40 +0200)
commit89b088bf70c651c231bf27e644270d093b8f144a
tree29ebb441116659b0609bb9c80666f3bcf737fa7c
parente82a7cb1622bff08d8e3a144d7c5516a088f1cbc
debug: Fix read error handling in pcprofiledump

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”.
debug/pcprofiledump.c
This page took 0.03665 seconds and 5 git commands to generate.