On Thu, 30 Jul 2020 15:01:56 +0200 Halil Pasic <pa...@linux.ibm.com> wrote:
> As pointed out by Peter, g_memdup(ms->loadparm, sizeof(ms->loadparm) + 1) > reads one past of the end of ms->loadparm, so g_memdup() can not be used > here. > > Let's use g_strndup instead! > > Fixes: d664548328 ("s390x/s390-virtio-ccw: fix loadparm property getter") > Fixes: Coverity CID 1431058 > Reported-by: Peter Maydell <peter.mayd...@linaro.org> > Signed-off-by: Halil Pasic <pa...@linux.ibm.com> > --- > hw/s390x/s390-virtio-ccw.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Thanks, queued to s390-fixes.