diff options
author | Stefan Hajnoczi | 2019-03-21 18:08:30 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2019-03-22 16:55:50 +0100 |
commit | fd9858317a3d06c94ad8c1c420e6b5c376f5a92e (patch) | |
tree | c87f18f18631f5c5bdcd999cda694e9458dc74e1 /hw/timer/stm32f2xx_timer.c | |
parent | Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' in... (diff) | |
download | qemu-fd9858317a3d06c94ad8c1c420e6b5c376f5a92e.tar.gz qemu-fd9858317a3d06c94ad8c1c420e6b5c376f5a92e.tar.xz qemu-fd9858317a3d06c94ad8c1c420e6b5c376f5a92e.zip |
trace: handle tracefs path truncation
If the tracefs mountpoint has a very long path we may exceed PATH_MAX.
This is a system misconfiguration and the user must resolve it so that
applications can perform path-based system calls successfully.
This issue does not occur on real-world systems since tracefs is mounted
on /sys/kernel/debug/tracing/, but the compiler is smart enough to
foresee the possibility and warn about the unchecked snprintf(3) return
value. This patch fixes the compiler warning.
Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Message-id: 20190321170831.6539-2-stefanha@redhat.com
Message-Id: <20190321170831.6539-2-stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/timer/stm32f2xx_timer.c')
0 files changed, 0 insertions, 0 deletions