Re: [PATCH-for-5.0] block: Assert BlockDriver::format_name is not NULL

2020-03-23 Thread Max Reitz
On 18.03.20 23:22, Philippe Mathieu-Daudé wrote: > bdrv_do_find_format() calls strcmp() using BlockDriver::format_name > as argument, which must not be NULL. Assert this field is not null > when we register a block driver in bdrv_register(). > > Reported-by: Mansour Ahmadi > Signed-off-by: Philip

Re: [PATCH-for-5.0] block: Assert BlockDriver::format_name is not NULL

2020-03-19 Thread Alberto Garcia
On Wed 18 Mar 2020 11:22:35 PM CET, Philippe Mathieu-Daudé wrote: > bdrv_do_find_format() calls strcmp() using BlockDriver::format_name > as argument, which must not be NULL. Assert this field is not null > when we register a block driver in bdrv_register(). > > Reported-by: Mansour Ahmadi > Signe

[PATCH-for-5.0] block: Assert BlockDriver::format_name is not NULL

2020-03-18 Thread Philippe Mathieu-Daudé
bdrv_do_find_format() calls strcmp() using BlockDriver::format_name as argument, which must not be NULL. Assert this field is not null when we register a block driver in bdrv_register(). Reported-by: Mansour Ahmadi Signed-off-by: Philippe Mathieu-Daudé --- block.c | 1 + 1 file changed, 1 inser