]> Git Repo - qemu.git/commit
spapr_iommu: use g_strdup_printf() instead of snprintf()
authorGreg Kurz <[email protected]>
Tue, 25 Jul 2017 17:58:40 +0000 (19:58 +0200)
committerDavid Gibson <[email protected]>
Thu, 7 Sep 2017 23:30:54 +0000 (09:30 +1000)
commita205a053dcfd89c7ab57aef48d26cd9349388933
tree1bedf500a5a235433844910ed75c3409f3513877
parent5c3d70e9701402e2755cf5d43f62a305ade4def2
spapr_iommu: use g_strdup_printf() instead of snprintf()

Passing a stack allocated buffer of arbitrary length to snprintf()
without checking the return value can cause the resultant strings
to be silently truncated.

Signed-off-by: Greg Kurz <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/spapr_iommu.c
This page took 0.024368 seconds and 4 git commands to generate.