qemu-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Missing Null check
From
:
Mansour Ahmadi
Subject
:
Missing Null check
Date
:
Tue, 17 Mar 2020 16:40:09 -0400
Is a NULL check on '
drv1->
format_name
' missing here?
https://github.com/qemu/qemu/blob/cc818a2148c5f321bdeb8e5564bdb2914e824600/block.c#L400-L403
if
(!
strcmp
(drv1->
format_name
, format_name)) {
While it is checked in similar case:
https://github.com/qemu/qemu/blob/cc818a2148c5f321bdeb8e5564bdb2914e824600/block.c#L797-L800
if
(drv1->
protocol_name
&& !
strcmp
(drv1->
protocol_name
, protocol)) {
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Missing Null check
,
Mansour Ahmadi
<=
Re: Missing Null check
,
Philippe Mathieu-Daudé
,
2020/03/18
Re: Missing Null check
,
Mansour Ahmadi
,
2020/03/18
Prev by Date:
Re: [PATCH v4 26/34] qapi: Mark deprecated QMP parts with feature 'deprecated'
Next by Date:
[Bug 1867786] Re: Qemu PPC64 freezes with multi-core CPU
Previous by thread:
[Bug 1859291] Re: RISC-V incorrect exception generated
Next by thread:
Re: Missing Null check
Index(es):
Date
Thread