Re: [Qemu-devel] [PATCH] block: fix off-by-one error in qcow and qcow2

2015-02-03 Thread Kevin Wolf
Am 27.01.2015 um 14:33 hat Jeff Cody geschrieben: > This fixes an off-by-one error introduced in 9a29e18. Both qcow and > qcow2 need to make sure to leave room for string terminator '\0' for > the backing file, so the max length of the non-terminated string is > either 1023 or PATH_MAX - 1. > > R

Re: [Qemu-devel] [PATCH] block: fix off-by-one error in qcow and qcow2

2015-01-27 Thread Kevin Wolf
Am 27.01.2015 um 14:33 hat Jeff Cody geschrieben: > This fixes an off-by-one error introduced in 9a29e18. Both qcow and > qcow2 need to make sure to leave room for string terminator '\0' for > the backing file, so the max length of the non-terminated string is > either 1023 or PATH_MAX - 1. > > R

[Qemu-devel] [PATCH] block: fix off-by-one error in qcow and qcow2

2015-01-27 Thread Jeff Cody
This fixes an off-by-one error introduced in 9a29e18. Both qcow and qcow2 need to make sure to leave room for string terminator '\0' for the backing file, so the max length of the non-terminated string is either 1023 or PATH_MAX - 1. Reported-by: Kevin Wolf Signed-off-by: Jeff Cody --- block/q