Skip to content

tools/{lib,}xl: Coverity falllout from the json-c switch

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tools/{lib,}xl: fix usage of error return from json_tokener_parse_verbose()tools/libs/light/libxl_json.c tools/xl/xl_info.c+7 -42 replies
2/6tools/libxl: avoid freeing stack rubble in libxl__json_object_to_json()tools/libs/light/libxl_json.c+1 -11 reply
3/6tools/xl: check return of json_object_object_add()tools/xl/xl_info.c+9 -41 reply
4/6tools/xl: check return value of printf_info_one_json() in list_domains_details()tools/xl/xl_info.c+2 -01 reply
5/6tools/xl: fix possible uninitialized usage in printf_info()tools/xl/xl_info.c+1 -11 reply
6/6github/coverity: switch to building with json-c instead of yajl.github/workflows/coverity.yml+1 -11 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchOleksii KurochkoAndrew CooperJason Andryuk
SeriesRelease-Acked-by R-b
1/6
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH for-4.21 0/6] tools/{lib,}xl: Coverity falllout from the json-c switch

Hello,

The following series contains fixes for Coverity reported issues after the switch from YAJL to json-c. Those reports are from the internal XenServer Coverity instance, as the project one hasn't been switched to use json-c yet, last patch in the series switches thegithub triggered Coverity build to use json-c.

All should be considered for 4.21.

Thanks, Roger.

Roger Pau Monne (6):
tools/{lib,}xl: fix usage of error return from
json_tokener_parse_verbose()
tools/libxl: avoid freeing stack rubble in
libxl__json_object_to_json()
tools/xl: check return of json_object_object_add() tools/xl: check return value of printf_info_one_json() in
list_domains_details()
tools/xl: fix possible uninitialized usage in printf_info() github/coverity: switch to building with json-c instead of yajl

 .github/workflows/coverity.yml |  2 +-
 tools/libs/light/libxl_json.c  |  8 +++++---
 tools/xl/xl_info.c             | 22 +++++++++++++++-------
 3 files changed, 21 insertions(+), 11 deletions(-)
Signature · 1 line
2.51.0