[PATCH v2 0/4] qemu-ga: Fix some potential issues find by coverity

Dehan Meng posted 4 patches 1 day, 7 hours ago
qga/commands-linux.c | 128 ++++++++++++++++++++-----------------------
1 file changed, 59 insertions(+), 69 deletions(-)
[PATCH v2 0/4] qemu-ga: Fix some potential issues find by coverity
Posted by Dehan Meng 1 day, 7 hours ago
v2:
Split v1 up to separate commits for each logically independent change

Dehan Meng (4):
  sscanf return values are checked to ensure correct parsing.
  Proper initialization of n to 0 for getline to function correctly.
  Avoiding freeing line prematurely. It's now only freed at the end of
    the function.
  For correcting code style: Variable declarations moved to the
    beginning of blocks Followed the coding style of using snake_case
    for variable names. And merged redundant route and networkroute
    variables.

Signed-off-by: Dehan Meng <demeng@redhat.com>

 qga/commands-linux.c | 128 ++++++++++++++++++++-----------------------
 1 file changed, 59 insertions(+), 69 deletions(-)

-- 
2.40.1
[PATCH v3 0/4] qemu-ga: Modify commits message and make some minor code update
Posted by Dehan Meng 1 day, 7 hours ago
v3:
Modify commits message and do some minor update.

v2:
Split v1 up to separate commits for each logically independent change

Dehan Meng (4):
  'Null' check for mandatory parameters
  Initialize correctly so getline works properly
  Avoiding freeing line prematurely
  For correcting code style

Signed-off-by: Dehan Meng <demeng@redhat.com>

 qga/commands-linux.c | 139 ++++++++++++++++++++++---------------------
 1 file changed, 70 insertions(+), 69 deletions(-)

-- 
2.40.1