diff options
author | Alexander Bulekov | 2020-07-14 19:46:16 +0200 |
---|---|---|
committer | Thomas Huth | 2020-07-17 10:44:23 +0200 |
commit | f5ec79f5e0a3a307fc2a11b3ba8066a2d0a90233 (patch) | |
tree | 5b16a8ec3a9689c0d67be2f600a2a4ad61a579e0 /configure | |
parent | tests: qmp-cmd-test: fix memory leak (diff) | |
download | qemu-f5ec79f5e0a3a307fc2a11b3ba8066a2d0a90233.tar.gz qemu-f5ec79f5e0a3a307fc2a11b3ba8066a2d0a90233.tar.xz qemu-f5ec79f5e0a3a307fc2a11b3ba8066a2d0a90233.zip |
fuzz: Expect the cmdline in a freeable GString
In the initial FuzzTarget, get_init_cmdline returned a char *. With this
API, we had no guarantee about where the string came from. For example,
i440fx-qtest-reboot-fuzz simply returned a pointer to a string literal,
while the QOS-based targets build the arguments out in a GString an
return the gchar *str pointer. Since we did not try to free the cmdline,
we have a leak for any targets that do not simply return string
literals. Clean up this mess by forcing fuzz-targets to return
a GString, that we can free.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200714174616.20709-1-alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions