warning: low parsing ratio: 77%
analyzer | coverity |
analyzer-args | --wait-for-license -co BAD_FREE:allow_first_field:true |
analyzer-version | Coverity Static Analysis for C/C++ version 6.5.2 on Linux 2.6.32-279.el6.x86_64 x86_64\nInternal version numbers: cda7fe2dcf p-6.5.2-push-13307.188.7 |
compilation-unit-count | 460 |
compilation-unit-ratio | 77 |
host | cov01.lab.eng.brq.redhat.com |
lines-processed | 445679 |
mock-config | fedora-rawhide-x86_64 |
project-name | libguestfs-1.22.0-1.fc19 |
time-created | 2013-05-26 23:02:37 |
time-elapsed-analysis | 00:09:29 |
time-finished | 2013-05-26 23:38:04 |
tool | cov-mockbuild |
tool-args | fedora-rawhide-x86_64 /tmp/covscan_oFkrpG/libguestfs-1.22.0-1.fc19.src.rpm |
tool-version | cov-mockbuild-0.20130423_e872bd7-1.el6.noarch csdiff-0.20130423_f42814c-1.el6.x86_64 |
Error: CHECKED_RETURN (CWE-252): [#def1] libguestfs-1.22.0/daemon/proto.c:294: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:294: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)". Error: CHECKED_RETURN (CWE-252): [#def2] libguestfs-1.22.0/src/inspect-fs-unix.c:1557: check_return: Calling function "guestfs_aug_close(guestfs_h *)" without checking return value (as is done elsewhere 9 out of 10 times). libguestfs-1.22.0/erlang/erl-guestfs.c:866: example_assign: Example1: Assigning: "r" = return value from "guestfs_aug_close(g)". libguestfs-1.22.0/erlang/erl-guestfs.c:867: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:7795: example_assign: Example2: Assigning: "r" = return value from "guestfs_aug_close(g)". libguestfs-1.22.0/fish/cmds.c:7796: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:4210: example_assign: Example3: Assigning: "r" = return value from "guestfs_aug_close(g)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:4213: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:735: example_assign: Example4: Assigning: "r" = return value from "guestfs_aug_close(g)". libguestfs-1.22.0/lua/lua-guestfs.c:736: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:1338: example_assign: Example5: Assigning: "r" = return value from "guestfs_aug_close(g)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:1340: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/src/inspect-fs-unix.c:1557: unchecked_value: No check of the return value of "guestfs_aug_close(g)". Error: CHECKED_RETURN (CWE-252): [#def3] libguestfs-1.22.0/daemon/proto.c:647: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:647: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &i)". Error: CHECKED_RETURN (CWE-252): [#def4] libguestfs-1.22.0/daemon/proto.c:381: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:381: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)". Error: CHECKED_RETURN (CWE-252): [#def5] libguestfs-1.22.0/daemon/proto.c:578: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:578: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)". Error: CHECKED_RETURN (CWE-252): [#def6] libguestfs-1.22.0/daemon/proto.c:461: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:461: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &flag)". Error: CHECKED_RETURN (CWE-252): [#def7] libguestfs-1.22.0/src/handle.c:210: check_return: Calling function "guestfs_set_append(guestfs_h *, char const *)" without checking return value (as is done elsewhere 10 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8248: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_append(g, append)". libguestfs-1.22.0/erlang/erl-guestfs.c:8250: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:4836: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_append(g, append)". libguestfs-1.22.0/fish/cmds.c:4837: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1332: example_assign: Example3: Assigning: "r" = return value from "guestfs_set_append(g, append)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1337: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10574: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_append(g, append)". libguestfs-1.22.0/lua/lua-guestfs.c:10575: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:14882: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_append(g, append)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:14884: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/src/handle.c:210: unchecked_value: No check of the return value of "guestfs_set_append(g, str)". Error: CHECKED_RETURN (CWE-252): [#def8] libguestfs-1.22.0/src/handle.c:218: check_return: Calling function "guestfs_set_memsize(guestfs_h *, int)" without checking return value (as is done elsewhere 10 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8461: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)". libguestfs-1.22.0/erlang/erl-guestfs.c:8462: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:5008: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)". libguestfs-1.22.0/fish/cmds.c:5009: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1520: example_assign: Example3: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1523: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10871: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)". libguestfs-1.22.0/lua/lua-guestfs.c:10872: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15286: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15287: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/src/handle.c:218: unchecked_value: No check of the return value of "guestfs_set_memsize(g, memsize)". Error: CHECKED_RETURN (CWE-252): [#def9] libguestfs-1.22.0/src/handle.c:202: check_return: Calling function "guestfs_set_path(guestfs_h *, char const *)" without checking return value (as is done elsewhere 9 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8491: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/erlang/erl-guestfs.c:8493: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:4793: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/fish/cmds.c:4794: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1295: example_assign: Example3: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1300: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10913: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/lua/lua-guestfs.c:10914: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15344: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15346: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/src/handle.c:202: unchecked_value: No check of the return value of "guestfs_set_path(g, str)". Error: CHECKED_RETURN (CWE-252): [#def10] libguestfs-1.22.0/daemon/proto.c:347: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:347: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)". Error: CHECKED_RETURN (CWE-252): [#def11] libguestfs-1.22.0/daemon/proto.c:95: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/proto.c:95: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)". Error: CHECKED_RETURN (CWE-252): [#def12] libguestfs-1.22.0/examples/virt-dhcp-address.c:113: check_return: Calling function "guestfs_mount_ro(guestfs_h *, char const *, char const *)" without checking return value (as is done elsewhere 13 out of 16 times). libguestfs-1.22.0/cat/virt-cat.c:376: example_checked: Example1: "guestfs_mount_ro(g, device, "/")" has its value checked in "guestfs_mount_ro(g, device, "/") == -1". libguestfs-1.22.0/df/df.c:72: example_checked: Example2: "guestfs_mount_ro(g, dev, "/")" has its value checked in "guestfs_mount_ro(g, dev, "/") == 0". libguestfs-1.22.0/erlang/erl-guestfs.c:7084: example_assign: Example3: Assigning: "r" = return value from "guestfs_mount_ro(g, mountable, mountpoint)". libguestfs-1.22.0/erlang/erl-guestfs.c:7087: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:9464: example_assign: Example4: Assigning: "r" = return value from "guestfs_mount_ro(g, mountable, mountpoint)". libguestfs-1.22.0/fish/cmds.c:9465: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/inspect.c:140: example_assign: Example5: Assigning: "r" = return value from "guestfs_mount_ro(g, mountpoints[i + 1UL], mountpoints[i])". libguestfs-1.22.0/fish/inspect.c:141: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/examples/virt-dhcp-address.c:113: unchecked_value: No check of the return value of "guestfs_mount_ro(g, mountpoints[i + 1UL], mountpoints[i])". Error: CHECKED_RETURN (CWE-252): [#def13] libguestfs-1.22.0/fish/fish.c:414: check_return: Calling function "guestfs_set_pgroup(guestfs_h *, int)" without checking return value (as is done elsewhere 9 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8505: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/erlang/erl-guestfs.c:8506: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:6325: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/fish/cmds.c:6326: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:2748: example_assign: Example3: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:2751: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10934: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/lua/lua-guestfs.c:10935: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15373: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15374: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/fish.c:414: unchecked_value: No check of the return value of "guestfs_set_pgroup(g, 1)". Error: CHECKED_RETURN (CWE-252): [#def14] libguestfs-1.22.0/fish/fish.c:466: check_return: Calling function "guestfs_set_recovery_proc(guestfs_h *, int)" without checking return value (as is done elsewhere 10 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8550: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)". libguestfs-1.22.0/erlang/erl-guestfs.c:8551: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:5237: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)". libguestfs-1.22.0/fish/cmds.c:5238: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fuse/guestmount.c:364: example_checked: Example3: "guestfs_set_recovery_proc(g, !do_fork)" has its value checked in "guestfs_set_recovery_proc(g, !do_fork) == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1708: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1711: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10997: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)". libguestfs-1.22.0/lua/lua-guestfs.c:10998: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/fish.c:466: unchecked_value: No check of the return value of "guestfs_set_recovery_proc(g, 0)". Error: CHECKED_RETURN (CWE-252): [#def15] libguestfs-1.22.0/fish/reopen.c:76: check_return: Calling function "guestfs_set_path(guestfs_h *, char const *)" without checking return value (as is done elsewhere 9 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8491: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/erlang/erl-guestfs.c:8493: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:4793: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/fish/cmds.c:4794: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1295: example_assign: Example3: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:1300: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10913: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/lua/lua-guestfs.c:10914: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15344: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15346: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/reopen.c:76: unchecked_value: No check of the return value of "guestfs_set_path(g2, p)". Error: CHECKED_RETURN (CWE-252): [#def16] libguestfs-1.22.0/fish/reopen.c:80: check_return: Calling function "guestfs_set_pgroup(guestfs_h *, int)" without checking return value (as is done elsewhere 9 out of 11 times). libguestfs-1.22.0/erlang/erl-guestfs.c:8505: example_assign: Example1: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/erlang/erl-guestfs.c:8506: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:6325: example_assign: Example2: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/fish/cmds.c:6326: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:2748: example_assign: Example3: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:2751: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:10934: example_assign: Example4: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/lua/lua-guestfs.c:10935: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15373: example_assign: Example5: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:15374: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/reopen.c:80: unchecked_value: No check of the return value of "guestfs_set_pgroup(g2, r)". Error: CHECKED_RETURN (CWE-252): [#def17] libguestfs-1.22.0/daemon/guestfsd.c:294: check_return: Calling function "xdr_u_int(XDR *, u_int *)" without checking return value (as is done elsewhere 150 out of 159 times). libguestfs-1.22.0/daemon/guestfs_protocol.c:7896: example_checked: Example1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/daemon/guestfs_protocol.c:7934: example_checked: Example2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7934: example_checked: Example3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)". libguestfs-1.22.0/src/guestfs_protocol.c:7896: example_checked: Example4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)". libguestfs-1.22.0/src/guestfs_protocol.c:722: example_checked: Example5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)". libguestfs-1.22.0/daemon/guestfsd.c:294: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)". Error: CHECKED_RETURN (CWE-252): [#def18] libguestfs-1.22.0/fish/fish.c:574: check_return: Calling function "guestfs_user_cancel(guestfs_h *)" without checking return value (as is done elsewhere 9 out of 10 times). libguestfs-1.22.0/erlang/erl-guestfs.c:9500: example_assign: Example1: Assigning: "r" = return value from "guestfs_user_cancel(g)". libguestfs-1.22.0/erlang/erl-guestfs.c:9501: example_checked: Example1 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/cmds.c:7425: example_assign: Example2: Assigning: "r" = return value from "guestfs_user_cancel(g)". libguestfs-1.22.0/fish/cmds.c:7426: example_checked: Example2 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:3697: example_assign: Example3: Assigning: "r" = return value from "guestfs_user_cancel(g)". libguestfs-1.22.0/java/com_redhat_et_libguestfs_GuestFS.c:3700: example_checked: Example3 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/lua/lua-guestfs.c:12244: example_assign: Example4: Assigning: "r" = return value from "guestfs_user_cancel(g)". libguestfs-1.22.0/lua/lua-guestfs.c:12245: example_checked: Example4 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:17217: example_assign: Example5: Assigning: "r" = return value from "guestfs_user_cancel(g)". libguestfs-1.22.0/ocaml/guestfs-c-actions.c:17218: example_checked: Example5 (cont.): "r" has its value checked in "r == -1". libguestfs-1.22.0/fish/fish.c:574: unchecked_value: No check of the return value of "guestfs_user_cancel(g)". Error: CONSTANT_EXPRESSION_RESULT (CWE-398): [#def19] /usr/include/bits/stdio2.h:287: pointless_expression: The expression "1 /* !0 */ || 1 /* !0 */" does not accomplish anything because it evaluates to either of its identical operands, "1 /* !0 */". Did you intend the operands to be different? Error: CONSTANT_EXPRESSION_RESULT (CWE-398): [#def20] libguestfs-1.22.0/gnulib/lib/quotearg.c:570: same_on_both_sides: "91 == 91" is always true regardless of the values of its operands because those operands are identical. This occurs as the logical first operand of '&&'. Error: DEADCODE (CWE-561): [#def21] libguestfs-1.22.0/gnulib/lib/strerror_r.c:152: assignment: Assigning: "msg" = "NULL". libguestfs-1.22.0/gnulib/lib/strerror_r.c:154: null: At condition "msg", the value of "msg" must be NULL. libguestfs-1.22.0/gnulib/lib/strerror_r.c:154: dead_error_condition: The condition "msg" cannot be true. libguestfs-1.22.0/gnulib/lib/strerror_r.c:155: dead_error_line: Execution cannot reach this statement "return safe_copy(buf, bufle...". Error: FORWARD_NULL (CWE-476): [#def22] libguestfs-1.22.0/src/libvirt-domain.c:66: assign_zero: Assigning: "optargs2.readonlydisk" = "NULL". libguestfs-1.22.0/src/libvirt-domain.c:133: var_deref_model: Passing "&optargs2" to function "guestfs___add_libvirt_dom(guestfs_h *, virDomainPtr, struct guestfs___add_libvirt_dom_argv const *)", which dereferences null "optargs2.readonlydisk". libguestfs-1.22.0/src/libvirt-domain.c:185:5: deref_parm_in_call: Function "__coverity_strcmp(char const *, char const *)" dereferences "optargs->readonlydisk". Error: FORWARD_NULL (CWE-476): [#def23] libguestfs-1.22.0/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". libguestfs-1.22.0/gnulib/lib/vasnprintf.c:1905: var_deref_op: Dereferencing null pointer "result". Error: FORWARD_NULL (CWE-476): [#def24] libguestfs-1.22.0/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". libguestfs-1.22.0/gnulib/lib/vasnprintf.c:4937: var_deref_op: Dereferencing null pointer "result". Error: FORWARD_NULL (CWE-476): [#def25] libguestfs-1.22.0/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". libguestfs-1.22.0/gnulib/lib/vasnprintf.c:5548: var_deref_op: Dereferencing null pointer "result". Error: FORWARD_NULL (CWE-476): [#def26] libguestfs-1.22.0/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". libguestfs-1.22.0/gnulib/lib/vasnprintf.c:1883: var_deref_model: Passing null pointer "result + length" to function "memcpy(void * restrict, void const * restrict, size_t)", which dereferences it. Error: FORWARD_NULL (CWE-476): [#def27] libguestfs-1.22.0/fish/fish.c:247: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null. libguestfs-1.22.0/fish/fish.c:337: var_deref_model: Passing null pointer "optarg" to function "__coverity_strchr(char const *, int)", which dereferences it. Error: FORWARD_NULL (CWE-476): [#def28] libguestfs-1.22.0/fish/fish.c:247: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null. libguestfs-1.22.0/fish/fish.c:295: var_deref_model: Passing null pointer "optarg" to function "option_a(char const *, char const *, struct drv **)", which dereferences it. libguestfs-1.22.0/fish/options.c:53:3: deref_parm_in_call: Function "is_uri(char const *)" dereferences "arg". libguestfs-1.22.0/fish/options.c:81:3: deref_parm_in_call: Function "strstr(char const *, char const *)" dereferences "arg". Error: FORWARD_NULL (CWE-476): [#def29] libguestfs-1.22.0/fish/fish.c:247: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null. libguestfs-1.22.0/fish/fish.c:345: var_deref_model: Passing null pointer "optarg" to function "strcasecmp(char const *, char const *)", which dereferences it. Error: FORWARD_NULL (CWE-476): [#def30] libguestfs-1.22.0/lua/lua-guestfs.c:5201: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5207: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_list_applications(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:804:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def31] libguestfs-1.22.0/lua/lua-guestfs.c:7911: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7917: var_deref_model: Passing null pointer "g" to function "guestfs_md_stat(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5997:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def32] libguestfs-1.22.0/lua/lua-guestfs.c:4667: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4672: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_read(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3394:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def33] libguestfs-1.22.0/lua/lua-guestfs.c:12642: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12647: var_deref_model: Passing null pointer "g" to function "guestfs_vgs_full(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1182:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def34] libguestfs-1.22.0/lua/lua-guestfs.c:914: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:920: var_deref_model: Passing null pointer "g" to function "guestfs_aug_match(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1572:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def35] libguestfs-1.22.0/lua/lua-guestfs.c:2903: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2910: var_deref_model: Passing null pointer "g" to function "guestfs_fgrep(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2946:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def36] libguestfs-1.22.0/lua/lua-guestfs.c:2717: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2724: var_deref_model: Passing null pointer "g" to function "guestfs_egrep(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2910:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def37] libguestfs-1.22.0/lua/lua-guestfs.c:2928: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2935: var_deref_model: Passing null pointer "g" to function "guestfs_fgrepi(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3609:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def38] libguestfs-1.22.0/lua/lua-guestfs.c:3115: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3121: var_deref_model: Passing null pointer "g" to function "guestfs_find(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:439:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def39] libguestfs-1.22.0/lua/lua-guestfs.c:3549: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3554: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credentials(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:582:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def40] libguestfs-1.22.0/lua/lua-guestfs.c:3942: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3948: var_deref_model: Passing null pointer "g" to function "guestfs_glob_expand(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2492:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def41] libguestfs-1.22.0/lua/lua-guestfs.c:3968: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3995: var_deref_model: Passing null pointer "g" to function "guestfs_grep_opts_argv(guestfs_h *, char const *, char const *, struct guestfs_grep_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2915:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def42] libguestfs-1.22.0/lua/lua-guestfs.c:4084: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4091: var_deref_model: Passing null pointer "g" to function "guestfs_head_n(guestfs_h *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2349:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def43] libguestfs-1.22.0/lua/lua-guestfs.c:4013: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4020: var_deref_model: Passing null pointer "g" to function "guestfs_grepi(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2530:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def44] libguestfs-1.22.0/lua/lua-guestfs.c:4560: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4566: var_deref_model: Passing null pointer "g" to function "guestfs_initrd_list(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2493:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def45] libguestfs-1.22.0/lua/lua-guestfs.c:4625: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4630: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_files(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3582:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def46] libguestfs-1.22.0/lua/lua-guestfs.c:4779: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4785: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_filesystems(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:615:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def47] libguestfs-1.22.0/lua/lua-guestfs.c:5044: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5049: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_roots(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:725:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def48] libguestfs-1.22.0/lua/lua-guestfs.c:5246: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5251: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_os(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:487:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def49] libguestfs-1.22.0/lua/lua-guestfs.c:5997: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6003: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstringlist(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:84:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def50] libguestfs-1.22.0/lua/lua-guestfs.c:6600: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6606: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_diskgroup_disks(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6626:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def51] libguestfs-1.22.0/lua/lua-guestfs.c:6646: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6652: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_diskgroup_volumes(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:6487:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def52] libguestfs-1.22.0/lua/lua-guestfs.c:6687: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6692: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_scan(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5867:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def53] libguestfs-1.22.0/lua/lua-guestfs.c:6709: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6715: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_scan_devices(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:5424:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def54] libguestfs-1.22.0/lua/lua-guestfs.c:6759: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6766: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_volume_partitions(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:7438:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def55] libguestfs-1.22.0/lua/lua-guestfs.c:6856: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6861: var_deref_model: Passing null pointer "g" to function "guestfs_list_9p(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5123:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def56] libguestfs-1.22.0/lua/lua-guestfs.c:6961: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6966: var_deref_model: Passing null pointer "g" to function "guestfs_list_ldm_partitions(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:6430:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def57] libguestfs-1.22.0/lua/lua-guestfs.c:6982: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6987: var_deref_model: Passing null pointer "g" to function "guestfs_list_ldm_volumes(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5768:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def58] libguestfs-1.22.0/lua/lua-guestfs.c:7003: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7008: var_deref_model: Passing null pointer "g" to function "guestfs_list_md_devices(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5481:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def59] libguestfs-1.22.0/lua/lua-guestfs.c:7024: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7029: var_deref_model: Passing null pointer "g" to function "guestfs_list_partitions(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1083:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def60] libguestfs-1.22.0/lua/lua-guestfs.c:7207: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7213: var_deref_model: Passing null pointer "g" to function "guestfs_ls(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:575:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def61] libguestfs-1.22.0/lua/lua-guestfs.c:7726: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7731: var_deref_model: Passing null pointer "g" to function "guestfs_lvs(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:713:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def62] libguestfs-1.22.0/lua/lua-guestfs.c:9044: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9049: var_deref_model: Passing null pointer "g" to function "guestfs_mounts(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1589:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def63] libguestfs-1.22.0/lua/lua-guestfs.c:9895: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9900: var_deref_model: Passing null pointer "g" to function "guestfs_pvs(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1471:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def64] libguestfs-1.22.0/lua/lua-guestfs.c:10109: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10116: var_deref_model: Passing null pointer "g" to function "guestfs_readlinklist(guestfs_h *, char const *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:649:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def65] libguestfs-1.22.0/lua/lua-guestfs.c:11342: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11348: var_deref_model: Passing null pointer "g" to function "guestfs_sh_lines(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1941:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def66] libguestfs-1.22.0/lua/lua-guestfs.c:11451: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11457: var_deref_model: Passing null pointer "g" to function "guestfs_strings(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3111:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def67] libguestfs-1.22.0/lua/lua-guestfs.c:11475: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11482: var_deref_model: Passing null pointer "g" to function "guestfs_strings_e(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1799:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def68] libguestfs-1.22.0/lua/lua-guestfs.c:11717: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11723: var_deref_model: Passing null pointer "g" to function "guestfs_tail(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2383:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def69] libguestfs-1.22.0/lua/lua-guestfs.c:11741: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11748: var_deref_model: Passing null pointer "g" to function "guestfs_tail_n(guestfs_h *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2307:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def70] libguestfs-1.22.0/lua/lua-guestfs.c:12508: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12514: var_deref_model: Passing null pointer "g" to function "guestfs_vglvuuids(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3875:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def71] libguestfs-1.22.0/lua/lua-guestfs.c:12555: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12561: var_deref_model: Passing null pointer "g" to function "guestfs_vgpvuuids(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3626:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def72] libguestfs-1.22.0/lua/lua-guestfs.c:12621: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12626: var_deref_model: Passing null pointer "g" to function "guestfs_vgs(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:841:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def73] libguestfs-1.22.0/lua/lua-guestfs.c:13091: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13098: var_deref_model: Passing null pointer "g" to function "guestfs_zegrep(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3182:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def74] libguestfs-1.22.0/lua/lua-guestfs.c:13116: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13123: var_deref_model: Passing null pointer "g" to function "guestfs_zegrepi(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3189:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def75] libguestfs-1.22.0/lua/lua-guestfs.c:13225: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13232: var_deref_model: Passing null pointer "g" to function "guestfs_zfgrep(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3071:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def76] libguestfs-1.22.0/lua/lua-guestfs.c:13250: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13257: var_deref_model: Passing null pointer "g" to function "guestfs_zfgrepi(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3270:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def77] libguestfs-1.22.0/lua/lua-guestfs.c:13300: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13307: var_deref_model: Passing null pointer "g" to function "guestfs_zgrep(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3028:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def78] libguestfs-1.22.0/lua/lua-guestfs.c:13325: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13332: var_deref_model: Passing null pointer "g" to function "guestfs_zgrepi(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3727:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def79] libguestfs-1.22.0/lua/lua-guestfs.c:6919: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6924: var_deref_model: Passing null pointer "g" to function "guestfs_list_dm_devices(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4522:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def80] libguestfs-1.22.0/lua/lua-guestfs.c:4060: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4066: var_deref_model: Passing null pointer "g" to function "guestfs_head(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2196:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def81] libguestfs-1.22.0/lua/lua-guestfs.c:2742: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2749: var_deref_model: Passing null pointer "g" to function "guestfs_egrepi(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3064:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def82] libguestfs-1.22.0/lua/lua-guestfs.c:1045: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1050: var_deref_model: Passing null pointer "g" to function "guestfs_available_all_groups(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4414:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def83] libguestfs-1.22.0/lua/lua-guestfs.c:891: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:897: var_deref_model: Passing null pointer "g" to function "guestfs_aug_ls(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1682:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def84] libguestfs-1.22.0/format/format.c:159: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null. libguestfs-1.22.0/format/format.c:144: var_deref_model: Passing null pointer "optarg" to function "__coverity_strcmp(char const *, char const *)", which dereferences it. Error: FORWARD_NULL (CWE-476): [#def85] libguestfs-1.22.0/format/format.c:159: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null. libguestfs-1.22.0/format/format.c:185: var_deref_model: Passing null pointer "optarg" to function "option_a(char const *, char const *, struct drv **)", which dereferences it. libguestfs-1.22.0/fish/options.c:53:3: deref_parm_in_call: Function "is_uri(char const *)" dereferences "arg". libguestfs-1.22.0/fish/options.c:81:3: deref_parm_in_call: Function "strstr(char const *, char const *)" dereferences "arg". Error: FORWARD_NULL (CWE-476): [#def86] libguestfs-1.22.0/lua/lua-guestfs.c:457: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:464: var_deref_model: Passing null pointer "g" to function "guestfs_acl_get_file(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7347:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def87] libguestfs-1.22.0/lua/lua-guestfs.c:529: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:563: var_deref_model: Passing null pointer "g" to function "guestfs_add_domain_argv(guestfs_h *, char const *, struct guestfs_add_domain_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:673:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def88] libguestfs-1.22.0/lua/lua-guestfs.c:688: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:695: var_deref_model: Passing null pointer "g" to function "guestfs_add_drive_with_if(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:590:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def89] libguestfs-1.22.0/lua/lua-guestfs.c:643: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:649: var_deref_model: Passing null pointer "g" to function "guestfs_add_drive_ro(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:152:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def90] libguestfs-1.22.0/lua/lua-guestfs.c:710: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:716: var_deref_model: Passing null pointer "g" to function "guestfs_aug_clear(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4284:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def91] libguestfs-1.22.0/lua/lua-guestfs.c:730: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:735: var_deref_model: Passing null pointer "g" to function "guestfs_aug_close(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:939:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def92] libguestfs-1.22.0/lua/lua-guestfs.c:752: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:760: var_deref_model: Passing null pointer "g" to function "guestfs_aug_defnode(guestfs_h *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1027:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def93] libguestfs-1.22.0/lua/lua-guestfs.c:778: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:785: var_deref_model: Passing null pointer "g" to function "guestfs_aug_defvar(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1271:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def94] libguestfs-1.22.0/lua/lua-guestfs.c:801: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:807: var_deref_model: Passing null pointer "g" to function "guestfs_aug_get(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1138:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def95] libguestfs-1.22.0/lua/lua-guestfs.c:871: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:876: var_deref_model: Passing null pointer "g" to function "guestfs_aug_load(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1246:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def96] libguestfs-1.22.0/lua/lua-guestfs.c:825: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:832: var_deref_model: Passing null pointer "g" to function "guestfs_aug_init(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:849:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def97] libguestfs-1.22.0/lua/lua-guestfs.c:938: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:945: var_deref_model: Passing null pointer "g" to function "guestfs_aug_mv(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:814:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def98] libguestfs-1.22.0/lua/lua-guestfs.c:960: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:966: var_deref_model: Passing null pointer "g" to function "guestfs_aug_rm(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1153:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def99] libguestfs-1.22.0/lua/lua-guestfs.c:981: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:986: var_deref_model: Passing null pointer "g" to function "guestfs_aug_save(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1231:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def100] libguestfs-1.22.0/lua/lua-guestfs.c:1002: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1009: var_deref_model: Passing null pointer "g" to function "guestfs_aug_set(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:946:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def101] libguestfs-1.22.0/lua/lua-guestfs.c:1068: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1075: var_deref_model: Passing null pointer "g" to function "guestfs_base64_in(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4464:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def102] libguestfs-1.22.0/lua/lua-guestfs.c:1091: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1098: var_deref_model: Passing null pointer "g" to function "guestfs_base64_out(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4583:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def103] libguestfs-1.22.0/lua/lua-guestfs.c:1113: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1119: var_deref_model: Passing null pointer "g" to function "guestfs_blkid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4719:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def104] libguestfs-1.22.0/lua/lua-guestfs.c:1136: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1142: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_flushbufs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1534:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def105] libguestfs-1.22.0/lua/lua-guestfs.c:1157: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1163: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getbsz(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1219:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def106] libguestfs-1.22.0/lua/lua-guestfs.c:1179: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1185: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getro(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1123:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def107] libguestfs-1.22.0/lua/lua-guestfs.c:1201: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1207: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getsize64(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1517:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def108] libguestfs-1.22.0/lua/lua-guestfs.c:1223: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1229: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getss(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1421:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def109] libguestfs-1.22.0/lua/lua-guestfs.c:1245: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1251: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getsz(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2184:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def110] libguestfs-1.22.0/lua/lua-guestfs.c:1311: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1317: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_setro(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2089:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def111] libguestfs-1.22.0/lua/lua-guestfs.c:1332: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1338: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_setrw(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1440:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def112] libguestfs-1.22.0/lua/lua-guestfs.c:1401: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1407: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_filesystem_balance(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6093:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def113] libguestfs-1.22.0/lua/lua-guestfs.c:1453: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1459: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_filesystem_sync(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6234:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def114] libguestfs-1.22.0/lua/lua-guestfs.c:1510: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1517: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_set_seeding(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4912:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def115] libguestfs-1.22.0/lua/lua-guestfs.c:1532: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1538: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_create(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5262:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def116] libguestfs-1.22.0/lua/lua-guestfs.c:1553: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1559: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_delete(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6043:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def117] libguestfs-1.22.0/lua/lua-guestfs.c:1574: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1580: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_list(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6138:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def118] libguestfs-1.22.0/lua/lua-guestfs.c:1621: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1628: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_snapshot(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5161:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def119] libguestfs-1.22.0/lua/lua-guestfs.c:1643: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1649: var_deref_model: Passing null pointer "g" to function "guestfs_canonical_device_name(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:572:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def120] libguestfs-1.22.0/lua/lua-guestfs.c:1666: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1672: var_deref_model: Passing null pointer "g" to function "guestfs_cap_get_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7450:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def121] libguestfs-1.22.0/lua/lua-guestfs.c:1690: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1697: var_deref_model: Passing null pointer "g" to function "guestfs_cap_set_file(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:7335:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def122] libguestfs-1.22.0/lua/lua-guestfs.c:1712: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1718: var_deref_model: Passing null pointer "g" to function "guestfs_case_sensitive_path(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2959:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def123] libguestfs-1.22.0/lua/lua-guestfs.c:1735: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1741: var_deref_model: Passing null pointer "g" to function "guestfs_cat(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:748:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def124] libguestfs-1.22.0/lua/lua-guestfs.c:1759: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1766: var_deref_model: Passing null pointer "g" to function "guestfs_checksum(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2400:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def125] libguestfs-1.22.0/lua/lua-guestfs.c:1784: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1791: var_deref_model: Passing null pointer "g" to function "guestfs_checksum_device(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4085:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def126] libguestfs-1.22.0/lua/lua-guestfs.c:1834: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1841: var_deref_model: Passing null pointer "g" to function "guestfs_chmod(guestfs_h *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1599:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def127] libguestfs-1.22.0/lua/lua-guestfs.c:1858: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1866: var_deref_model: Passing null pointer "g" to function "guestfs_chown(guestfs_h *, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1134:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def128] libguestfs-1.22.0/lua/lua-guestfs.c:1933: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1949: var_deref_model: Passing null pointer "g" to function "guestfs_compress_device_out_argv(guestfs_h *, char const *, char const *, char const *, struct guestfs_compress_device_out_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4880:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def129] libguestfs-1.22.0/lua/lua-guestfs.c:1968: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1984: var_deref_model: Passing null pointer "g" to function "guestfs_compress_out_argv(guestfs_h *, char const *, char const *, char const *, struct guestfs_compress_out_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4743:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def130] libguestfs-1.22.0/lua/lua-guestfs.c:2228: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2235: var_deref_model: Passing null pointer "g" to function "guestfs_cp(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2297:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def131] libguestfs-1.22.0/lua/lua-guestfs.c:2251: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2258: var_deref_model: Passing null pointer "g" to function "guestfs_cp_a(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1696:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def132] libguestfs-1.22.0/lua/lua-guestfs.c:2274: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2281: var_deref_model: Passing null pointer "g" to function "guestfs_cp_r(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:5543:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def133] libguestfs-1.22.0/lua/lua-guestfs.c:2297: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2304: var_deref_model: Passing null pointer "g" to function "guestfs_dd(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3899:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def134] libguestfs-1.22.0/lua/lua-guestfs.c:2368: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2376: var_deref_model: Passing null pointer "g" to function "guestfs_debug_upload(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3992:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def135] libguestfs-1.22.0/lua/lua-guestfs.c:2391: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2397: var_deref_model: Passing null pointer "g" to function "guestfs_device_index(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5896:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def136] libguestfs-1.22.0/lua/lua-guestfs.c:2455: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2461: var_deref_model: Passing null pointer "g" to function "guestfs_disk_format(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:541:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def137] libguestfs-1.22.0/lua/lua-guestfs.c:2412: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2417: var_deref_model: Passing null pointer "g" to function "guestfs_df(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2417:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def138] libguestfs-1.22.0/lua/lua-guestfs.c:2478: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2484: var_deref_model: Passing null pointer "g" to function "guestfs_disk_has_backing_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1181:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def139] libguestfs-1.22.0/lua/lua-guestfs.c:2500: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2506: var_deref_model: Passing null pointer "g" to function "guestfs_disk_virtual_size(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:857:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def140] libguestfs-1.22.0/lua/lua-guestfs.c:2521: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2526: var_deref_model: Passing null pointer "g" to function "guestfs_dmesg(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2837:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def141] libguestfs-1.22.0/lua/lua-guestfs.c:2544: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2551: var_deref_model: Passing null pointer "g" to function "guestfs_download(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1629:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def142] libguestfs-1.22.0/lua/lua-guestfs.c:2593: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2599: var_deref_model: Passing null pointer "g" to function "guestfs_drop_caches(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2023:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def143] libguestfs-1.22.0/lua/lua-guestfs.c:2614: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2620: var_deref_model: Passing null pointer "g" to function "guestfs_du(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3409:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def144] libguestfs-1.22.0/lua/lua-guestfs.c:2638: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2656: var_deref_model: Passing null pointer "g" to function "guestfs_e2fsck_argv(guestfs_h *, char const *, struct guestfs_e2fsck_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5109:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def145] libguestfs-1.22.0/lua/lua-guestfs.c:2671: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2677: var_deref_model: Passing null pointer "g" to function "guestfs_e2fsck_f(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3314:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def146] libguestfs-1.22.0/lua/lua-guestfs.c:2767: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2774: var_deref_model: Passing null pointer "g" to function "guestfs_equal(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3008:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def147] libguestfs-1.22.0/lua/lua-guestfs.c:2790: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2796: var_deref_model: Passing null pointer "g" to function "guestfs_exists(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1372:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def148] libguestfs-1.22.0/lua/lua-guestfs.c:2812: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2818: var_deref_model: Passing null pointer "g" to function "guestfs_extlinux(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:6698:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def149] libguestfs-1.22.0/lua/lua-guestfs.c:2834: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2841: var_deref_model: Passing null pointer "g" to function "guestfs_fallocate(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3299:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def150] libguestfs-1.22.0/lua/lua-guestfs.c:2952: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2958: var_deref_model: Passing null pointer "g" to function "guestfs_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1027:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def151] libguestfs-1.22.0/lua/lua-guestfs.c:2975: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2981: var_deref_model: Passing null pointer "g" to function "guestfs_file_architecture(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:335:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def152] libguestfs-1.22.0/lua/lua-guestfs.c:2998: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3004: var_deref_model: Passing null pointer "g" to function "guestfs_filesize(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3910:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def153] libguestfs-1.22.0/lua/lua-guestfs.c:3020: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3026: var_deref_model: Passing null pointer "g" to function "guestfs_filesystem_available(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5630:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def154] libguestfs-1.22.0/lua/lua-guestfs.c:3044: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3052: var_deref_model: Passing null pointer "g" to function "guestfs_fill(guestfs_h *, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3811:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def155] libguestfs-1.22.0/lua/lua-guestfs.c:3068: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3075: var_deref_model: Passing null pointer "g" to function "guestfs_fill_dir(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5992:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def156] libguestfs-1.22.0/lua/lua-guestfs.c:3092: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3100: var_deref_model: Passing null pointer "g" to function "guestfs_fill_pattern(guestfs_h *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4298:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def157] libguestfs-1.22.0/lua/lua-guestfs.c:3139: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3146: var_deref_model: Passing null pointer "g" to function "guestfs_find0(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3447:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def158] libguestfs-1.22.0/lua/lua-guestfs.c:3161: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3167: var_deref_model: Passing null pointer "g" to function "guestfs_findfs_label(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4911:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def159] libguestfs-1.22.0/lua/lua-guestfs.c:3184: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3190: var_deref_model: Passing null pointer "g" to function "guestfs_findfs_uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4218:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def160] libguestfs-1.22.0/lua/lua-guestfs.c:3208: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3215: var_deref_model: Passing null pointer "g" to function "guestfs_fsck(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2194:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def161] libguestfs-1.22.0/lua/lua-guestfs.c:3269: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3274: var_deref_model: Passing null pointer "g" to function "guestfs_get_append(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:456:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def162] libguestfs-1.22.0/lua/lua-guestfs.c:3286: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3291: var_deref_model: Passing null pointer "g" to function "guestfs_get_attach_method(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:845:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def163] libguestfs-1.22.0/lua/lua-guestfs.c:3307: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3312: var_deref_model: Passing null pointer "g" to function "guestfs_get_autosync(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:275:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def164] libguestfs-1.22.0/lua/lua-guestfs.c:3327: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3332: var_deref_model: Passing null pointer "g" to function "guestfs_get_backend(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:597:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def165] libguestfs-1.22.0/lua/lua-guestfs.c:3348: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3353: var_deref_model: Passing null pointer "g" to function "guestfs_get_cachedir(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1258:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def166] libguestfs-1.22.0/lua/lua-guestfs.c:3390: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3396: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2attrs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4720:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def167] libguestfs-1.22.0/lua/lua-guestfs.c:3413: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3419: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2generation(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4816:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def168] libguestfs-1.22.0/lua/lua-guestfs.c:3435: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3441: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2label(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2649:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def169] libguestfs-1.22.0/lua/lua-guestfs.c:3458: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3464: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1652:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def170] libguestfs-1.22.0/lua/lua-guestfs.c:3481: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3487: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credential_challenge(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:714:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def171] libguestfs-1.22.0/lua/lua-guestfs.c:3504: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3510: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credential_defresult(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1223:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def172] libguestfs-1.22.0/lua/lua-guestfs.c:3527: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3533: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credential_prompt(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:847:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def173] libguestfs-1.22.0/lua/lua-guestfs.c:3570: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3575: var_deref_model: Passing null pointer "g" to function "guestfs_get_memsize(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:518:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def174] libguestfs-1.22.0/lua/lua-guestfs.c:3590: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3595: var_deref_model: Passing null pointer "g" to function "guestfs_get_network(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:490:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def175] libguestfs-1.22.0/lua/lua-guestfs.c:3610: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3615: var_deref_model: Passing null pointer "g" to function "guestfs_get_path(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:198:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def176] libguestfs-1.22.0/lua/lua-guestfs.c:3630: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3635: var_deref_model: Passing null pointer "g" to function "guestfs_get_pgroup(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:968:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def177] libguestfs-1.22.0/lua/lua-guestfs.c:3650: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3655: var_deref_model: Passing null pointer "g" to function "guestfs_get_pid(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:377:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def178] libguestfs-1.22.0/lua/lua-guestfs.c:3670: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3675: var_deref_model: Passing null pointer "g" to function "guestfs_get_program(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:992:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def179] libguestfs-1.22.0/lua/lua-guestfs.c:3690: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3695: var_deref_model: Passing null pointer "g" to function "guestfs_get_qemu(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:316:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def180] libguestfs-1.22.0/lua/lua-guestfs.c:3710: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3715: var_deref_model: Passing null pointer "g" to function "guestfs_get_recovery_proc(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:283:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def181] libguestfs-1.22.0/lua/lua-guestfs.c:3730: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3735: var_deref_model: Passing null pointer "g" to function "guestfs_get_selinux(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:411:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def182] libguestfs-1.22.0/lua/lua-guestfs.c:3750: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3755: var_deref_model: Passing null pointer "g" to function "guestfs_get_smp(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1002:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def183] libguestfs-1.22.0/lua/lua-guestfs.c:3770: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3775: var_deref_model: Passing null pointer "g" to function "guestfs_get_state(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:456:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def184] libguestfs-1.22.0/lua/lua-guestfs.c:3790: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3795: var_deref_model: Passing null pointer "g" to function "guestfs_get_tmpdir(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:703:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def185] libguestfs-1.22.0/lua/lua-guestfs.c:3811: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3816: var_deref_model: Passing null pointer "g" to function "guestfs_get_trace(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:358:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def186] libguestfs-1.22.0/lua/lua-guestfs.c:3831: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3836: var_deref_model: Passing null pointer "g" to function "guestfs_get_umask(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4377:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def187] libguestfs-1.22.0/lua/lua-guestfs.c:3851: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3856: var_deref_model: Passing null pointer "g" to function "guestfs_get_verbose(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:422:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def188] libguestfs-1.22.0/lua/lua-guestfs.c:3871: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3876: var_deref_model: Passing null pointer "g" to function "guestfs_getcon(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4311:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def189] libguestfs-1.22.0/lua/lua-guestfs.c:3895: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3902: var_deref_model: Passing null pointer "g" to function "guestfs_getxattr(guestfs_h *, char const *, char const *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5518:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def190] libguestfs-1.22.0/lua/lua-guestfs.c:3919: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3925: var_deref_model: Passing null pointer "g" to function "guestfs_getxattrs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2810:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def191] libguestfs-1.22.0/lua/lua-guestfs.c:4038: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4045: var_deref_model: Passing null pointer "g" to function "guestfs_grub_install(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1922:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def192] libguestfs-1.22.0/lua/lua-guestfs.c:4108: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4114: var_deref_model: Passing null pointer "g" to function "guestfs_hexdump(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1748:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def193] libguestfs-1.22.0/lua/lua-guestfs.c:4130: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4135: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_close(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6807:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def194] libguestfs-1.22.0/lua/lua-guestfs.c:4150: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4156: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_commit(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6745:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def195] libguestfs-1.22.0/lua/lua-guestfs.c:4385: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4407: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_open_argv(guestfs_h *, char const *, struct guestfs_hivex_open_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6685:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def196] libguestfs-1.22.0/lua/lua-guestfs.c:4421: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4426: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_root(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6262:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def197] libguestfs-1.22.0/lua/lua-guestfs.c:4606: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4611: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_close(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3256:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def198] libguestfs-1.22.0/lua/lua-guestfs.c:4536: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4543: var_deref_model: Passing null pointer "g" to function "guestfs_initrd_cat(guestfs_h *, char const *, char const *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3759:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def199] libguestfs-1.22.0/lua/lua-guestfs.c:4647: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4653: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_init(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4031:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def200] libguestfs-1.22.0/lua/lua-guestfs.c:4689: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4695: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_rm_watch(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3495:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def201] libguestfs-1.22.0/lua/lua-guestfs.c:4710: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4716: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_arch(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:377:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def202] libguestfs-1.22.0/lua/lua-guestfs.c:4733: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4739: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_distro(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:531:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def203] libguestfs-1.22.0/lua/lua-guestfs.c:4756: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4762: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_drive_mappings(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:674:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def204] libguestfs-1.22.0/lua/lua-guestfs.c:4802: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4808: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_format(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:488:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def205] libguestfs-1.22.0/lua/lua-guestfs.c:4825: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4831: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_hostname(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:446:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def206] libguestfs-1.22.0/lua/lua-guestfs.c:4851: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4869: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_icon_argv(guestfs_h *, char const *, size_t *, struct guestfs_inspect_get_icon_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:660:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def207] libguestfs-1.22.0/lua/lua-guestfs.c:4886: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4892: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_major_version(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:643:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def208] libguestfs-1.22.0/lua/lua-guestfs.c:4908: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4914: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_minor_version(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:573:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def209] libguestfs-1.22.0/lua/lua-guestfs.c:4930: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4936: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_mountpoints(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:312:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def210] libguestfs-1.22.0/lua/lua-guestfs.c:4953: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4959: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_package_format(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:762:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def211] libguestfs-1.22.0/lua/lua-guestfs.c:4976: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4982: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_package_management(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:363:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def212] libguestfs-1.22.0/lua/lua-guestfs.c:4999: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5005: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_product_name(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:270:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def213] libguestfs-1.22.0/lua/lua-guestfs.c:5022: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5028: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_product_variant(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:927:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def214] libguestfs-1.22.0/lua/lua-guestfs.c:5066: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5072: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_type(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:318:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def215] libguestfs-1.22.0/lua/lua-guestfs.c:5112: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5118: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_windows_systemroot(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:556:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def216] libguestfs-1.22.0/lua/lua-guestfs.c:5135: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5141: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_is_live(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:403:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def217] libguestfs-1.22.0/lua/lua-guestfs.c:5157: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5163: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_is_multipart(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:530:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def218] libguestfs-1.22.0/lua/lua-guestfs.c:5179: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5185: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_is_netinst(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:610:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def219] libguestfs-1.22.0/lua/lua-guestfs.c:5224: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5230: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_list_applications2(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:568:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def220] libguestfs-1.22.0/lua/lua-guestfs.c:5335: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5598: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it. libguestfs-1.22.0/lua/lua-guestfs.c:251:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g". libguestfs-1.22.0/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def221] libguestfs-1.22.0/lua/lua-guestfs.c:5610: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5615: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_close_output(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:188:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def222] libguestfs-1.22.0/lua/lua-guestfs.c:5631: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5644: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_only_optargs_argv(guestfs_h *, struct guestfs_internal_test_only_optargs_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:48:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def223] libguestfs-1.22.0/lua/lua-guestfs.c:5659: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5665: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rbool(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:42:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def224] libguestfs-1.22.0/lua/lua-guestfs.c:5680: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5685: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rboolerr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:41:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def225] libguestfs-1.22.0/lua/lua-guestfs.c:5702: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5708: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rbufferout(guestfs_h *, char const *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:105:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def226] libguestfs-1.22.0/lua/lua-guestfs.c:5725: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5730: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rbufferouterr(guestfs_h *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:230:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def227] libguestfs-1.22.0/lua/lua-guestfs.c:5747: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5753: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconstoptstring(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:84:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def228] libguestfs-1.22.0/lua/lua-guestfs.c:5765: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5770: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconstoptstringerr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:75:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def229] libguestfs-1.22.0/lua/lua-guestfs.c:5783: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5789: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconststring(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:118:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def230] libguestfs-1.22.0/lua/lua-guestfs.c:5804: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5809: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconststringerr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:91:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def231] libguestfs-1.22.0/lua/lua-guestfs.c:5825: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5831: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rhashtable(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:178:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def232] libguestfs-1.22.0/lua/lua-guestfs.c:5847: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5852: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rhashtableerr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:413:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def233] libguestfs-1.22.0/lua/lua-guestfs.c:5869: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5875: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rint(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:42:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def234] libguestfs-1.22.0/lua/lua-guestfs.c:5891: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5897: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rint64(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:42:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def235] libguestfs-1.22.0/lua/lua-guestfs.c:5912: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5917: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rint64err(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:83:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def236] libguestfs-1.22.0/lua/lua-guestfs.c:5932: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5937: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rinterr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:41:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def237] libguestfs-1.22.0/lua/lua-guestfs.c:5953: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5959: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstring(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:76:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def238] libguestfs-1.22.0/lua/lua-guestfs.c:5975: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5980: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstringerr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:119:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def239] libguestfs-1.22.0/lua/lua-guestfs.c:6041: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6047: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstruct(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:160:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def240] libguestfs-1.22.0/lua/lua-guestfs.c:6063: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6068: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstructerr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:117:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def241] libguestfs-1.22.0/lua/lua-guestfs.c:6085: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6091: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstructlist(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:154:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def242] libguestfs-1.22.0/lua/lua-guestfs.c:6107: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6112: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstructlisterr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:195:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def243] libguestfs-1.22.0/lua/lua-guestfs.c:6129: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6135: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_set_output(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:147:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def244] libguestfs-1.22.0/lua/lua-guestfs.c:6150: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6156: var_deref_model: Passing null pointer "g" to function "guestfs_is_blockdev(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4731:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def245] libguestfs-1.22.0/lua/lua-guestfs.c:6192: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6198: var_deref_model: Passing null pointer "g" to function "guestfs_is_chardev(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4045:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def246] libguestfs-1.22.0/lua/lua-guestfs.c:6213: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6218: var_deref_model: Passing null pointer "g" to function "guestfs_is_config(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:484:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def247] libguestfs-1.22.0/lua/lua-guestfs.c:6256: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6262: var_deref_model: Passing null pointer "g" to function "guestfs_is_fifo(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4827:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def248] libguestfs-1.22.0/lua/lua-guestfs.c:6278: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6284: var_deref_model: Passing null pointer "g" to function "guestfs_is_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1696:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def249] libguestfs-1.22.0/lua/lua-guestfs.c:6299: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6304: var_deref_model: Passing null pointer "g" to function "guestfs_is_launching(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:300:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def250] libguestfs-1.22.0/lua/lua-guestfs.c:6320: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6326: var_deref_model: Passing null pointer "g" to function "guestfs_is_lv(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3949:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def251] libguestfs-1.22.0/lua/lua-guestfs.c:6472: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6478: var_deref_model: Passing null pointer "g" to function "guestfs_isoinfo(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5436:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def252] libguestfs-1.22.0/lua/lua-guestfs.c:6495: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6501: var_deref_model: Passing null pointer "g" to function "guestfs_isoinfo_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5900:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def253] libguestfs-1.22.0/lua/lua-guestfs.c:6341: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6346: var_deref_model: Passing null pointer "g" to function "guestfs_is_ready(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:309:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def254] libguestfs-1.22.0/lua/lua-guestfs.c:6362: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6368: var_deref_model: Passing null pointer "g" to function "guestfs_is_socket(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4141:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def255] libguestfs-1.22.0/lua/lua-guestfs.c:6384: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6390: var_deref_model: Passing null pointer "g" to function "guestfs_is_symlink(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5007:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def256] libguestfs-1.22.0/lua/lua-guestfs.c:6406: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6412: var_deref_model: Passing null pointer "g" to function "guestfs_is_whole_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7936:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def257] libguestfs-1.22.0/lua/lua-guestfs.c:6428: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6434: var_deref_model: Passing null pointer "g" to function "guestfs_is_zero(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5103:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def258] libguestfs-1.22.0/lua/lua-guestfs.c:6450: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6456: var_deref_model: Passing null pointer "g" to function "guestfs_is_zero_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5634:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def259] libguestfs-1.22.0/lua/lua-guestfs.c:6517: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6522: var_deref_model: Passing null pointer "g" to function "guestfs_kill_subprocess(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:222:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def260] libguestfs-1.22.0/lua/lua-guestfs.c:6536: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6541: var_deref_model: Passing null pointer "g" to function "guestfs_launch(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:125:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def261] libguestfs-1.22.0/lua/lua-guestfs.c:6580: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6585: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_create_all(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6540:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def262] libguestfs-1.22.0/lua/lua-guestfs.c:6623: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6629: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_diskgroup_name(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:6391:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def263] libguestfs-1.22.0/lua/lua-guestfs.c:6668: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6673: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_remove_all(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7543:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def264] libguestfs-1.22.0/lua/lua-guestfs.c:6734: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6741: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_volume_hint(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7734:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def265] libguestfs-1.22.0/lua/lua-guestfs.c:6784: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6791: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_volume_type(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7630:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def266] libguestfs-1.22.0/lua/lua-guestfs.c:6810: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6817: var_deref_model: Passing null pointer "g" to function "guestfs_lgetxattr(guestfs_h *, char const *, char const *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4926:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def267] libguestfs-1.22.0/lua/lua-guestfs.c:6834: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6840: var_deref_model: Passing null pointer "g" to function "guestfs_lgetxattrs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2338:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def268] libguestfs-1.22.0/lua/lua-guestfs.c:6898: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6903: var_deref_model: Passing null pointer "g" to function "guestfs_list_disk_labels(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:7124:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def269] libguestfs-1.22.0/lua/lua-guestfs.c:6940: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6945: var_deref_model: Passing null pointer "g" to function "guestfs_list_filesystems(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:359:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def270] libguestfs-1.22.0/lua/lua-guestfs.c:7046: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7052: var_deref_model: Passing null pointer "g" to function "guestfs_ll(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1377:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def271] libguestfs-1.22.0/lua/lua-guestfs.c:7069: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7075: var_deref_model: Passing null pointer "g" to function "guestfs_llz(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5516:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def272] libguestfs-1.22.0/lua/lua-guestfs.c:7093: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7100: var_deref_model: Passing null pointer "g" to function "guestfs_ln(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2773:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def273] libguestfs-1.22.0/lua/lua-guestfs.c:7116: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7123: var_deref_model: Passing null pointer "g" to function "guestfs_ln_f(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3387:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def274] libguestfs-1.22.0/lua/lua-guestfs.c:7139: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7146: var_deref_model: Passing null pointer "g" to function "guestfs_ln_s(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3489:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def275] libguestfs-1.22.0/lua/lua-guestfs.c:7162: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7169: var_deref_model: Passing null pointer "g" to function "guestfs_ln_sf(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2875:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def276] libguestfs-1.22.0/lua/lua-guestfs.c:7185: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7192: var_deref_model: Passing null pointer "g" to function "guestfs_lremovexattr(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3073:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def277] libguestfs-1.22.0/lua/lua-guestfs.c:7231: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7238: var_deref_model: Passing null pointer "g" to function "guestfs_ls0(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6571:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def278] libguestfs-1.22.0/lua/lua-guestfs.c:7256: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7265: var_deref_model: Passing null pointer "g" to function "guestfs_lsetxattr(guestfs_h *, char const *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2798:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def279] libguestfs-1.22.0/lua/lua-guestfs.c:7280: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7286: var_deref_model: Passing null pointer "g" to function "guestfs_lstat(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1773:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def280] libguestfs-1.22.0/lua/lua-guestfs.c:7332: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7341: var_deref_model: Passing null pointer "g" to function "guestfs_luks_add_key(guestfs_h *, char const *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4620:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def281] libguestfs-1.22.0/lua/lua-guestfs.c:7356: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7362: var_deref_model: Passing null pointer "g" to function "guestfs_luks_close(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4294:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def282] libguestfs-1.22.0/lua/lua-guestfs.c:7379: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7387: var_deref_model: Passing null pointer "g" to function "guestfs_luks_format(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4114:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def283] libguestfs-1.22.0/lua/lua-guestfs.c:7405: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7414: var_deref_model: Passing null pointer "g" to function "guestfs_luks_format_cipher(guestfs_h *, char const *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4697:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def284] libguestfs-1.22.0/lua/lua-guestfs.c:7431: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7439: var_deref_model: Passing null pointer "g" to function "guestfs_luks_kill_slot(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3845:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def285] libguestfs-1.22.0/lua/lua-guestfs.c:7456: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7464: var_deref_model: Passing null pointer "g" to function "guestfs_luks_open(guestfs_h *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4692:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def286] libguestfs-1.22.0/lua/lua-guestfs.c:7481: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7489: var_deref_model: Passing null pointer "g" to function "guestfs_luks_open_ro(guestfs_h *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4802:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def287] libguestfs-1.22.0/lua/lua-guestfs.c:7506: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7514: var_deref_model: Passing null pointer "g" to function "guestfs_lvcreate(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1120:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def288] libguestfs-1.22.0/lua/lua-guestfs.c:7531: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7539: var_deref_model: Passing null pointer "g" to function "guestfs_lvcreate_free(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5796:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def289] libguestfs-1.22.0/lua/lua-guestfs.c:7554: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7560: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_canonical_lv_name(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4428:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def290] libguestfs-1.22.0/lua/lua-guestfs.c:7576: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7581: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_clear_filter(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4609:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def291] libguestfs-1.22.0/lua/lua-guestfs.c:7595: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7600: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_remove_all(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1687:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def292] libguestfs-1.22.0/lua/lua-guestfs.c:11428: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11434: var_deref_model: Passing null pointer "g" to function "guestfs_statvfs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1993:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def293] libguestfs-1.22.0/lua/lua-guestfs.c:7637: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7643: var_deref_model: Passing null pointer "g" to function "guestfs_lvremove(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2098:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def294] libguestfs-1.22.0/lua/lua-guestfs.c:7659: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7666: var_deref_model: Passing null pointer "g" to function "guestfs_lvrename(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3493:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def295] libguestfs-1.22.0/lua/lua-guestfs.c:7682: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7689: var_deref_model: Passing null pointer "g" to function "guestfs_lvresize(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1844:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def296] libguestfs-1.22.0/lua/lua-guestfs.c:7705: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7712: var_deref_model: Passing null pointer "g" to function "guestfs_lvresize_free(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:4188:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def297] libguestfs-1.22.0/lua/lua-guestfs.c:7747: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7752: var_deref_model: Passing null pointer "g" to function "guestfs_lvs_full(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1031:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def298] libguestfs-1.22.0/lua/lua-guestfs.c:7769: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7775: var_deref_model: Passing null pointer "g" to function "guestfs_lvuuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3691:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def299] libguestfs-1.22.0/lua/lua-guestfs.c:7817: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7822: var_deref_model: Passing null pointer "g" to function "guestfs_max_disks(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:404:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def300] libguestfs-1.22.0/lua/lua-guestfs.c:7888: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7894: var_deref_model: Passing null pointer "g" to function "guestfs_md_detail(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5224:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def301] libguestfs-1.22.0/lua/lua-guestfs.c:7955: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7961: var_deref_model: Passing null pointer "g" to function "guestfs_mkdir(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1038:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def302] libguestfs-1.22.0/lua/lua-guestfs.c:7977: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7984: var_deref_model: Passing null pointer "g" to function "guestfs_mkdir_mode(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5026:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def303] libguestfs-1.22.0/lua/lua-guestfs.c:7999: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8005: var_deref_model: Passing null pointer "g" to function "guestfs_mkdir_p(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1504:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def304] libguestfs-1.22.0/lua/lua-guestfs.c:8020: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8026: var_deref_model: Passing null pointer "g" to function "guestfs_mkdtemp(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2287:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def305] libguestfs-1.22.0/lua/lua-guestfs.c:8225: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8234: var_deref_model: Passing null pointer "g" to function "guestfs_mke2fs_J(guestfs_h *, char const *, int, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2848:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def306] libguestfs-1.22.0/lua/lua-guestfs.c:8252: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8261: var_deref_model: Passing null pointer "g" to function "guestfs_mke2fs_JL(guestfs_h *, char const *, int, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4497:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def307] libguestfs-1.22.0/lua/lua-guestfs.c:8279: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8288: var_deref_model: Passing null pointer "g" to function "guestfs_mke2fs_JU(guestfs_h *, char const *, int, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4610:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def308] libguestfs-1.22.0/lua/lua-guestfs.c:8304: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8311: var_deref_model: Passing null pointer "g" to function "guestfs_mke2journal(guestfs_h *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4398:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def309] libguestfs-1.22.0/lua/lua-guestfs.c:8328: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8336: var_deref_model: Passing null pointer "g" to function "guestfs_mke2journal_L(guestfs_h *, int, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3483:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def310] libguestfs-1.22.0/lua/lua-guestfs.c:8353: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8361: var_deref_model: Passing null pointer "g" to function "guestfs_mke2journal_U(guestfs_h *, int, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2742:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def311] libguestfs-1.22.0/lua/lua-guestfs.c:8377: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8384: var_deref_model: Passing null pointer "g" to function "guestfs_mkfifo(guestfs_h *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2602:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def312] libguestfs-1.22.0/lua/lua-guestfs.c:8402: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8429: var_deref_model: Passing null pointer "g" to function "guestfs_mkfs_opts_argv(guestfs_h *, char const *, char const *, struct guestfs_mkfs_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4930:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def313] libguestfs-1.22.0/lua/lua-guestfs.c:8446: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8454: var_deref_model: Passing null pointer "g" to function "guestfs_mkfs_b(guestfs_h *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3343:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def314] libguestfs-1.22.0/lua/lua-guestfs.c:12308: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12313: var_deref_model: Passing null pointer "g" to function "guestfs_version(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:208:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def315] libguestfs-1.22.0/lua/lua-guestfs.c:8529: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8535: var_deref_model: Passing null pointer "g" to function "guestfs_mklost_and_found(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:6202:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def316] libguestfs-1.22.0/lua/lua-guestfs.c:8550: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8556: var_deref_model: Passing null pointer "g" to function "guestfs_mkmountpoint(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3174:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def317] libguestfs-1.22.0/lua/lua-guestfs.c:8574: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8583: var_deref_model: Passing null pointer "g" to function "guestfs_mknod(guestfs_h *, int, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2605:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def318] libguestfs-1.22.0/lua/lua-guestfs.c:8601: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8610: var_deref_model: Passing null pointer "g" to function "guestfs_mknod_b(guestfs_h *, int, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3507:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def319] libguestfs-1.22.0/lua/lua-guestfs.c:8628: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8637: var_deref_model: Passing null pointer "g" to function "guestfs_mknod_c(guestfs_h *, int, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2147:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def320] libguestfs-1.22.0/lua/lua-guestfs.c:8654: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8672: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_opts_argv(guestfs_h *, char const *, struct guestfs_mkswap_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2612:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def321] libguestfs-1.22.0/lua/lua-guestfs.c:8688: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8695: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_L(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2741:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def322] libguestfs-1.22.0/lua/lua-guestfs.c:8711: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8718: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_U(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2461:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def323] libguestfs-1.22.0/lua/lua-guestfs.c:8733: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8739: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3590:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def324] libguestfs-1.22.0/lua/lua-guestfs.c:8809: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8816: var_deref_model: Passing null pointer "g" to function "guestfs_mount(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:889:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def325] libguestfs-1.22.0/lua/lua-guestfs.c:8834: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8849: var_deref_model: Passing null pointer "g" to function "guestfs_mount_9p_argv(guestfs_h *, char const *, char const *, struct guestfs_mount_9p_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4490:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def326] libguestfs-1.22.0/lua/lua-guestfs.c:8866: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8892: var_deref_model: Passing null pointer "g" to function "guestfs_mount_local_argv(guestfs_h *, char const *, struct guestfs_mount_local_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:452:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def327] libguestfs-1.22.0/lua/lua-guestfs.c:1424: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1438: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_filesystem_resize_argv(guestfs_h *, char const *, struct guestfs_btrfs_filesystem_resize_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5736:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def328] libguestfs-1.22.0/lua/lua-guestfs.c:1476: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1494: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_fsck_argv(guestfs_h *, char const *, struct guestfs_btrfs_fsck_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5779:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def329] libguestfs-1.22.0/lua/lua-guestfs.c:1598: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1605: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_set_default(guestfs_h *, int64_t, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5357:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def330] libguestfs-1.22.0/lua/lua-guestfs.c:2025: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2052: var_deref_model: Passing null pointer "g" to function "guestfs_copy_device_to_device_argv(guestfs_h *, char const *, char const *, struct guestfs_copy_device_to_device_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5206:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def331] libguestfs-1.22.0/lua/lua-guestfs.c:2115: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2142: var_deref_model: Passing null pointer "g" to function "guestfs_copy_file_to_device_argv(guestfs_h *, char const *, char const *, struct guestfs_copy_file_to_device_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5196:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def332] libguestfs-1.22.0/lua/lua-guestfs.c:2160: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2187: var_deref_model: Passing null pointer "g" to function "guestfs_copy_file_to_file_argv(guestfs_h *, char const *, char const *, struct guestfs_copy_file_to_file_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5343:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def333] libguestfs-1.22.0/lua/lua-guestfs.c:2204: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2212: var_deref_model: Passing null pointer "g" to function "guestfs_copy_size(guestfs_h *, char const *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3788:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def334] libguestfs-1.22.0/lua/lua-guestfs.c:2569: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2578: var_deref_model: Passing null pointer "g" to function "guestfs_download_offset(guestfs_h *, char const *, char const *, int64_t, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4316:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def335] libguestfs-1.22.0/lua/lua-guestfs.c:2857: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2864: var_deref_model: Passing null pointer "g" to function "guestfs_fallocate64(guestfs_h *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4515:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def336] libguestfs-1.22.0/lua/lua-guestfs.c:3233: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3255: var_deref_model: Passing null pointer "g" to function "guestfs_fstrim_argv(guestfs_h *, char const *, struct guestfs_fstrim_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5460:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def337] libguestfs-1.22.0/lua/lua-guestfs.c:4172: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4179: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_add_child(guestfs_h *, int64_t, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:5326:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def338] libguestfs-1.22.0/lua/lua-guestfs.c:4195: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4201: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_children(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5585:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def339] libguestfs-1.22.0/lua/lua-guestfs.c:4240: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4247: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_get_child(guestfs_h *, int64_t, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5618:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def340] libguestfs-1.22.0/lua/lua-guestfs.c:4264: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4271: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_get_value(guestfs_h *, int64_t, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:5227:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def341] libguestfs-1.22.0/lua/lua-guestfs.c:4287: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4293: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_name(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:6034:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def342] libguestfs-1.22.0/lua/lua-guestfs.c:4310: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4316: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_parent(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6349:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def343] libguestfs-1.22.0/lua/lua-guestfs.c:4336: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4345: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_set_value(guestfs_h *, int64_t, char const *, int64_t, char const *, size_t)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5899:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def344] libguestfs-1.22.0/lua/lua-guestfs.c:4360: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4366: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_values(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:6124:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def345] libguestfs-1.22.0/lua/lua-guestfs.c:4442: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4448: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_key(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5716:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def346] libguestfs-1.22.0/lua/lua-guestfs.c:4465: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4471: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_type(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5806:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def347] libguestfs-1.22.0/lua/lua-guestfs.c:581: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:630: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it. libguestfs-1.22.0/lua/lua-guestfs.c:251:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g". libguestfs-1.22.0/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def348] libguestfs-1.22.0/lua/lua-guestfs.c:1024: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1030: var_deref_model: Passing null pointer "g" to function "guestfs_available(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5122:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def349] libguestfs-1.22.0/lua/lua-guestfs.c:1354: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1361: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_device_add(guestfs_h *, char * const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6188:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def350] libguestfs-1.22.0/lua/lua-guestfs.c:1378: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1385: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_device_delete(guestfs_h *, char * const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6329:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def351] libguestfs-1.22.0/lua/lua-guestfs.c:1881: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1887: var_deref_model: Passing null pointer "g" to function "guestfs_command(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1316:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def352] libguestfs-1.22.0/lua/lua-guestfs.c:2320: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2327: var_deref_model: Passing null pointer "g" to function "guestfs_debug(guestfs_h *, char const *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1708:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def353] libguestfs-1.22.0/lua/lua-guestfs.c:2692: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2698: var_deref_model: Passing null pointer "g" to function "guestfs_echo_daemon(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4721:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def354] libguestfs-1.22.0/lua/lua-guestfs.c:2879: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2885: var_deref_model: Passing null pointer "g" to function "guestfs_feature_available(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:7660:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def355] libguestfs-1.22.0/lua/lua-guestfs.c:5279: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5317: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_argv(guestfs_h *, char const *, char const *, char * const *, int, int, int64_t, char const *, char const *, char const *, size_t, struct guestfs_internal_test_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:58:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def356] libguestfs-1.22.0/lua/lua-guestfs.c:7304: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7311: var_deref_model: Passing null pointer "g" to function "guestfs_lstatlist(guestfs_h *, char const *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:791:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def357] libguestfs-1.22.0/lua/lua-guestfs.c:7615: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7621: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_set_filter(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4514:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def358] libguestfs-1.22.0/lua/lua-guestfs.c:7793: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7800: var_deref_model: Passing null pointer "g" to function "guestfs_lxattrlist(guestfs_h *, char const *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:519:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def359] libguestfs-1.22.0/lua/lua-guestfs.c:7841: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7872: var_deref_model: Passing null pointer "g" to function "guestfs_md_create_argv(guestfs_h *, char const *, char * const *, struct guestfs_md_create_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5353:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def360] libguestfs-1.22.0/lua/lua-guestfs.c:8471: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8513: var_deref_model: Passing null pointer "g" to function "guestfs_mkfs_btrfs_argv(guestfs_h *, char * const *, struct guestfs_mkfs_btrfs_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5342:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def361] libguestfs-1.22.0/lua/lua-guestfs.c:9313: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9319: var_deref_model: Passing null pointer "g" to function "guestfs_parse_environment_list(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:899:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def362] libguestfs-1.22.0/lua/lua-guestfs.c:10843: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10849: var_deref_model: Passing null pointer "g" to function "guestfs_set_libvirt_supported_credentials(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:817:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def363] libguestfs-1.22.0/lua/lua-guestfs.c:11169: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11179: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk(guestfs_h *, char const *, int, int, int, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1227:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def364] libguestfs-1.22.0/lua/lua-guestfs.c:11196: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11203: var_deref_model: Passing null pointer "g" to function "guestfs_sfdiskM(guestfs_h *, char const *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2563:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def365] libguestfs-1.22.0/lua/lua-guestfs.c:11801: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11824: var_deref_model: Passing null pointer "g" to function "guestfs_tar_out_opts_argv(guestfs_h *, char const *, char const *, struct guestfs_tar_out_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1419:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def366] libguestfs-1.22.0/lua/lua-guestfs.c:12400: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12407: var_deref_model: Passing null pointer "g" to function "guestfs_vg_activate(guestfs_h *, int, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2082:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def367] libguestfs-1.22.0/lua/lua-guestfs.c:12485: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12492: var_deref_model: Passing null pointer "g" to function "guestfs_vgcreate(guestfs_h *, char const *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:916:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def368] libguestfs-1.22.0/lua/lua-guestfs.c:4487: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4493: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_utf8(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:626:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def369] libguestfs-1.22.0/lua/lua-guestfs.c:4511: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4517: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_value(guestfs_h *, int64_t, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6440:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def370] libguestfs-1.22.0/lua/lua-guestfs.c:8045: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8209: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it. libguestfs-1.22.0/lua/lua-guestfs.c:251:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g". libguestfs-1.22.0/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def371] libguestfs-1.22.0/lua/lua-guestfs.c:9238: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9256: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsresize_opts_argv(guestfs_h *, char const *, struct guestfs_ntfsresize_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4618:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def372] libguestfs-1.22.0/lua/lua-guestfs.c:9272: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9279: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsresize_size(guestfs_h *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5323:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def373] libguestfs-1.22.0/lua/lua-guestfs.c:9338: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9347: var_deref_model: Passing null pointer "g" to function "guestfs_part_add(guestfs_h *, char const *, char const *, int64_t, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3387:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def374] libguestfs-1.22.0/lua/lua-guestfs.c:9717: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9725: var_deref_model: Passing null pointer "g" to function "guestfs_pread(guestfs_h *, char const *, int, int64_t, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3786:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def375] libguestfs-1.22.0/lua/lua-guestfs.c:9745: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9753: var_deref_model: Passing null pointer "g" to function "guestfs_pread_device(guestfs_h *, char const *, int, int64_t, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4811:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def376] libguestfs-1.22.0/lua/lua-guestfs.c:9874: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9881: var_deref_model: Passing null pointer "g" to function "guestfs_pvresize_size(guestfs_h *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4319:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def377] libguestfs-1.22.0/lua/lua-guestfs.c:9991: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9999: var_deref_model: Passing null pointer "g" to function "guestfs_pwrite_device(guestfs_h *, char const *, char const *, size_t, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4458:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def378] libguestfs-1.22.0/lua/lua-guestfs.c:10267: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10274: var_deref_model: Passing null pointer "g" to function "guestfs_resize2fs_size(guestfs_h *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4222:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def379] libguestfs-1.22.0/lua/lua-guestfs.c:10728: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10735: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2generation(guestfs_h *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5533:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def380] libguestfs-1.22.0/lua/lua-guestfs.c:11929: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11936: var_deref_model: Passing null pointer "g" to function "guestfs_truncate_size(guestfs_h *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3555:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def381] libguestfs-1.22.0/lua/lua-guestfs.c:11953: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12005: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it. libguestfs-1.22.0/lua/lua-guestfs.c:251:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g". libguestfs-1.22.0/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def382] libguestfs-1.22.0/lua/lua-guestfs.c:12217: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12225: var_deref_model: Passing null pointer "g" to function "guestfs_upload_offset(guestfs_h *, char const *, char const *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4334:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def383] libguestfs-1.22.0/lua/lua-guestfs.c:12263: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12273: var_deref_model: Passing null pointer "g" to function "guestfs_utimens(guestfs_h *, char const *, int64_t, int64_t, int64_t, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4923:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def384] libguestfs-1.22.0/lua/lua-guestfs.c:12942: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12984: var_deref_model: Passing null pointer "g" to function "guestfs_xfs_growfs_argv(guestfs_h *, char const *, struct guestfs_xfs_growfs_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6581:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def385] libguestfs-1.22.0/lua/lua-guestfs.c:13024: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13076: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it. libguestfs-1.22.0/lua/lua-guestfs.c:251:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g". libguestfs-1.22.0/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def386] libguestfs-1.22.0/lua/lua-guestfs.c:8906: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8911: var_deref_model: Passing null pointer "g" to function "guestfs_mount_local_run(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:713:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def387] libguestfs-1.22.0/lua/lua-guestfs.c:8927: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8934: var_deref_model: Passing null pointer "g" to function "guestfs_mount_loop(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2504:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def388] libguestfs-1.22.0/lua/lua-guestfs.c:8951: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8959: var_deref_model: Passing null pointer "g" to function "guestfs_mount_options(guestfs_h *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1441:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def389] libguestfs-1.22.0/lua/lua-guestfs.c:8975: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8982: var_deref_model: Passing null pointer "g" to function "guestfs_mount_ro(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1980:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def390] libguestfs-1.22.0/lua/lua-guestfs.c:9000: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9009: var_deref_model: Passing null pointer "g" to function "guestfs_mount_vfs(guestfs_h *, char const *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1580:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def391] libguestfs-1.22.0/lua/lua-guestfs.c:9023: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9028: var_deref_model: Passing null pointer "g" to function "guestfs_mountpoints(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2672:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def392] libguestfs-1.22.0/lua/lua-guestfs.c:9067: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9074: var_deref_model: Passing null pointer "g" to function "guestfs_mv(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2399:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def393] libguestfs-1.22.0/lua/lua-guestfs.c:9088: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9093: var_deref_model: Passing null pointer "g" to function "guestfs_nr_devices(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6297:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def394] libguestfs-1.22.0/lua/lua-guestfs.c:9134: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9141: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsclone_in(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5582:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def395] libguestfs-1.22.0/lua/lua-guestfs.c:9159: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9190: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsclone_out_argv(guestfs_h *, char const *, char const *, struct guestfs_ntfsclone_out_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:5619:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def396] libguestfs-1.22.0/lua/lua-guestfs.c:9207: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9221: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsfix_argv(guestfs_h *, char const *, struct guestfs_ntfsfix_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4929:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def397] libguestfs-1.22.0/lua/lua-guestfs.c:9293: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9298: var_deref_model: Passing null pointer "g" to function "guestfs_parse_environment(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:912:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def398] libguestfs-1.22.0/lua/lua-guestfs.c:9363: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9370: var_deref_model: Passing null pointer "g" to function "guestfs_part_del(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5226:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def399] libguestfs-1.22.0/lua/lua-guestfs.c:9386: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9393: var_deref_model: Passing null pointer "g" to function "guestfs_part_disk(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3685:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def400] libguestfs-1.22.0/lua/lua-guestfs.c:9433: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9440: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_gpt_type(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:7838:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def401] libguestfs-1.22.0/lua/lua-guestfs.c:9458: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9465: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_mbr_id(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3893:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def402] libguestfs-1.22.0/lua/lua-guestfs.c:9481: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9487: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_parttype(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3787:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def403] libguestfs-1.22.0/lua/lua-guestfs.c:9505: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9512: var_deref_model: Passing null pointer "g" to function "guestfs_part_init(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3283:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def404] libguestfs-1.22.0/lua/lua-guestfs.c:9527: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9533: var_deref_model: Passing null pointer "g" to function "guestfs_part_list(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3529:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def405] libguestfs-1.22.0/lua/lua-guestfs.c:9552: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9560: var_deref_model: Passing null pointer "g" to function "guestfs_part_set_bootable(guestfs_h *, char const *, int, int)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3430:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def406] libguestfs-1.22.0/lua/lua-guestfs.c:9577: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9585: var_deref_model: Passing null pointer "g" to function "guestfs_part_set_gpt_type(guestfs_h *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:7556:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def407] libguestfs-1.22.0/lua/lua-guestfs.c:9602: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9610: var_deref_model: Passing null pointer "g" to function "guestfs_part_set_mbr_id(guestfs_h *, char const *, int, int)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4007:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def408] libguestfs-1.22.0/lua/lua-guestfs.c:9627: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9635: var_deref_model: Passing null pointer "g" to function "guestfs_part_set_name(guestfs_h *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3653:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def409] libguestfs-1.22.0/lua/lua-guestfs.c:9650: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9656: var_deref_model: Passing null pointer "g" to function "guestfs_part_to_dev(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4237:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def410] libguestfs-1.22.0/lua/lua-guestfs.c:9673: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9679: var_deref_model: Passing null pointer "g" to function "guestfs_part_to_partnum(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4623:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def411] libguestfs-1.22.0/lua/lua-guestfs.c:9694: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9699: var_deref_model: Passing null pointer "g" to function "guestfs_ping_daemon(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2921:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def412] libguestfs-1.22.0/lua/lua-guestfs.c:9770: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9776: var_deref_model: Passing null pointer "g" to function "guestfs_pvchange_uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5725:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def413] libguestfs-1.22.0/lua/lua-guestfs.c:9790: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9795: var_deref_model: Passing null pointer "g" to function "guestfs_pvchange_uuid_all(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5817:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def414] libguestfs-1.22.0/lua/lua-guestfs.c:9810: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9816: var_deref_model: Passing null pointer "g" to function "guestfs_pvcreate(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1885:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def415] libguestfs-1.22.0/lua/lua-guestfs.c:9831: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9837: var_deref_model: Passing null pointer "g" to function "guestfs_pvremove(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1949:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def416] libguestfs-1.22.0/lua/lua-guestfs.c:9852: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9858: var_deref_model: Passing null pointer "g" to function "guestfs_pvresize(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2111:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def417] libguestfs-1.22.0/lua/lua-guestfs.c:9916: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9921: var_deref_model: Passing null pointer "g" to function "guestfs_pvs_full(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:951:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def418] libguestfs-1.22.0/lua/lua-guestfs.c:9938: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9944: var_deref_model: Passing null pointer "g" to function "guestfs_pvuuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:3595:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def419] libguestfs-1.22.0/lua/lua-guestfs.c:10016: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10022: var_deref_model: Passing null pointer "g" to function "guestfs_read_file(guestfs_h *, char const *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1088:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def420] libguestfs-1.22.0/lua/lua-guestfs.c:10062: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10068: var_deref_model: Passing null pointer "g" to function "guestfs_readdir(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2699:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def421] libguestfs-1.22.0/lua/lua-guestfs.c:10085: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10091: var_deref_model: Passing null pointer "g" to function "guestfs_readlink(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3145:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def422] libguestfs-1.22.0/lua/lua-guestfs.c:10134: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10140: var_deref_model: Passing null pointer "g" to function "guestfs_realpath(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3306:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def423] libguestfs-1.22.0/lua/lua-guestfs.c:10157: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10163: var_deref_model: Passing null pointer "g" to function "guestfs_remove_drive(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:662:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def424] libguestfs-1.22.0/lua/lua-guestfs.c:10179: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10186: var_deref_model: Passing null pointer "g" to function "guestfs_removexattr(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2843:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def425] libguestfs-1.22.0/lua/lua-guestfs.c:10202: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10209: var_deref_model: Passing null pointer "g" to function "guestfs_rename(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:6597:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def426] libguestfs-1.22.0/lua/lua-guestfs.c:10224: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10230: var_deref_model: Passing null pointer "g" to function "guestfs_resize2fs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2301:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def427] libguestfs-1.22.0/lua/lua-guestfs.c:10245: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10251: var_deref_model: Passing null pointer "g" to function "guestfs_resize2fs_M(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4388:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def428] libguestfs-1.22.0/lua/lua-guestfs.c:10289: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10295: var_deref_model: Passing null pointer "g" to function "guestfs_rm(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1316:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def429] libguestfs-1.22.0/lua/lua-guestfs.c:10310: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10316: var_deref_model: Passing null pointer "g" to function "guestfs_rm_f(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:6214:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def430] libguestfs-1.22.0/lua/lua-guestfs.c:10331: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10337: var_deref_model: Passing null pointer "g" to function "guestfs_rm_rf(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1791:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def431] libguestfs-1.22.0/lua/lua-guestfs.c:10352: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10358: var_deref_model: Passing null pointer "g" to function "guestfs_rmdir(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1410:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def432] libguestfs-1.22.0/lua/lua-guestfs.c:10373: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10379: var_deref_model: Passing null pointer "g" to function "guestfs_rmmountpoint(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2434:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def433] libguestfs-1.22.0/lua/lua-guestfs.c:10397: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10416: var_deref_model: Passing null pointer "g" to function "guestfs_rsync_argv(guestfs_h *, char const *, char const *, struct guestfs_rsync_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:6447:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def434] libguestfs-1.22.0/lua/lua-guestfs.c:10434: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10453: var_deref_model: Passing null pointer "g" to function "guestfs_rsync_in_argv(guestfs_h *, char const *, char const *, struct guestfs_rsync_in_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:5102:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def435] libguestfs-1.22.0/lua/lua-guestfs.c:10471: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10490: var_deref_model: Passing null pointer "g" to function "guestfs_rsync_out_argv(guestfs_h *, char const *, char const *, struct guestfs_rsync_out_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5910:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def436] libguestfs-1.22.0/lua/lua-guestfs.c:10505: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10511: var_deref_model: Passing null pointer "g" to function "guestfs_scrub_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2050:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def437] libguestfs-1.22.0/lua/lua-guestfs.c:10526: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10532: var_deref_model: Passing null pointer "g" to function "guestfs_scrub_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2684:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def438] libguestfs-1.22.0/lua/lua-guestfs.c:10547: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10553: var_deref_model: Passing null pointer "g" to function "guestfs_scrub_freespace(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2157:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def439] libguestfs-1.22.0/lua/lua-guestfs.c:10568: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10574: var_deref_model: Passing null pointer "g" to function "guestfs_set_append(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:233:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def440] libguestfs-1.22.0/lua/lua-guestfs.c:10589: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10595: var_deref_model: Passing null pointer "g" to function "guestfs_set_attach_method(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:769:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def441] libguestfs-1.22.0/lua/lua-guestfs.c:10610: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10616: var_deref_model: Passing null pointer "g" to function "guestfs_set_autosync(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:351:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def442] libguestfs-1.22.0/lua/lua-guestfs.c:10631: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10637: var_deref_model: Passing null pointer "g" to function "guestfs_set_backend(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:880:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def443] libguestfs-1.22.0/lua/lua-guestfs.c:10652: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10658: var_deref_model: Passing null pointer "g" to function "guestfs_set_cachedir(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:750:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def444] libguestfs-1.22.0/lua/lua-guestfs.c:10673: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10679: var_deref_model: Passing null pointer "g" to function "guestfs_set_direct(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:393:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def445] libguestfs-1.22.0/lua/lua-guestfs.c:10697: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10712: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2attrs_argv(guestfs_h *, char const *, char const *, struct guestfs_set_e2attrs_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:5045:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def446] libguestfs-1.22.0/lua/lua-guestfs.c:10751: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10758: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2label(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1550:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def447] libguestfs-1.22.0/lua/lua-guestfs.c:10774: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10781: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2uuid(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1820:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def448] libguestfs-1.22.0/lua/lua-guestfs.c:10797: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10804: var_deref_model: Passing null pointer "g" to function "guestfs_set_label(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:5334:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def449] libguestfs-1.22.0/lua/lua-guestfs.c:10821: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10828: var_deref_model: Passing null pointer "g" to function "guestfs_set_libvirt_requested_credential(guestfs_h *, int, char const *, size_t)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:869:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def450] libguestfs-1.22.0/lua/lua-guestfs.c:10865: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10871: var_deref_model: Passing null pointer "g" to function "guestfs_set_memsize(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:277:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def451] libguestfs-1.22.0/lua/lua-guestfs.c:10886: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10892: var_deref_model: Passing null pointer "g" to function "guestfs_set_network(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:685:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def452] libguestfs-1.22.0/lua/lua-guestfs.c:10907: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10913: var_deref_model: Passing null pointer "g" to function "guestfs_set_path(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:257:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def453] libguestfs-1.22.0/lua/lua-guestfs.c:10928: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10934: var_deref_model: Passing null pointer "g" to function "guestfs_set_pgroup(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:725:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def454] libguestfs-1.22.0/lua/lua-guestfs.c:10949: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10955: var_deref_model: Passing null pointer "g" to function "guestfs_set_program(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1329:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def455] libguestfs-1.22.0/lua/lua-guestfs.c:10970: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10976: var_deref_model: Passing null pointer "g" to function "guestfs_set_qemu(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:165:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def456] libguestfs-1.22.0/lua/lua-guestfs.c:10991: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10997: var_deref_model: Passing null pointer "g" to function "guestfs_set_recovery_proc(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:243:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def457] libguestfs-1.22.0/lua/lua-guestfs.c:11012: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11018: var_deref_model: Passing null pointer "g" to function "guestfs_set_selinux(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:318:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def458] libguestfs-1.22.0/lua/lua-guestfs.c:11033: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11039: var_deref_model: Passing null pointer "g" to function "guestfs_set_smp(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:816:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def459] libguestfs-1.22.0/lua/lua-guestfs.c:11054: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11060: var_deref_model: Passing null pointer "g" to function "guestfs_set_tmpdir(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:949:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def460] libguestfs-1.22.0/lua/lua-guestfs.c:11075: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11081: var_deref_model: Passing null pointer "g" to function "guestfs_set_trace(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:553:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def461] libguestfs-1.22.0/lua/lua-guestfs.c:11096: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11102: var_deref_model: Passing null pointer "g" to function "guestfs_set_verbose(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:387:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def462] libguestfs-1.22.0/lua/lua-guestfs.c:11117: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11123: var_deref_model: Passing null pointer "g" to function "guestfs_setcon(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4218:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def463] libguestfs-1.22.0/lua/lua-guestfs.c:11141: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11150: var_deref_model: Passing null pointer "g" to function "guestfs_setxattr(guestfs_h *, char const *, char const *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2962:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def464] libguestfs-1.22.0/lua/lua-guestfs.c:11224: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11235: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_N(guestfs_h *, char const *, int, int, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2048:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def465] libguestfs-1.22.0/lua/lua-guestfs.c:11250: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11256: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_disk_geometry(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2206:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def466] libguestfs-1.22.0/lua/lua-guestfs.c:11273: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11279: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_kernel_geometry(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1916:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def467] libguestfs-1.22.0/lua/lua-guestfs.c:11296: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11302: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_l(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2501:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def468] libguestfs-1.22.0/lua/lua-guestfs.c:11319: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11325: var_deref_model: Passing null pointer "g" to function "guestfs_sh(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:2396:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def469] libguestfs-1.22.0/lua/lua-guestfs.c:11364: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11369: var_deref_model: Passing null pointer "g" to function "guestfs_shutdown(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:613:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def470] libguestfs-1.22.0/lua/lua-guestfs.c:11384: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11390: var_deref_model: Passing null pointer "g" to function "guestfs_sleep(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2011:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def471] libguestfs-1.22.0/lua/lua-guestfs.c:11405: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11411: var_deref_model: Passing null pointer "g" to function "guestfs_stat(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1344:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def472] libguestfs-1.22.0/lua/lua-guestfs.c:11499: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11505: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3070:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def473] libguestfs-1.22.0/lua/lua-guestfs.c:11520: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11526: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3401:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def474] libguestfs-1.22.0/lua/lua-guestfs.c:11541: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11547: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_label(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3843:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def475] libguestfs-1.22.0/lua/lua-guestfs.c:11562: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11568: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3937:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def476] libguestfs-1.22.0/lua/lua-guestfs.c:11583: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11589: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2976:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def477] libguestfs-1.22.0/lua/lua-guestfs.c:11604: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11610: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2646:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def478] libguestfs-1.22.0/lua/lua-guestfs.c:11625: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11631: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_label(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3240:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def479] libguestfs-1.22.0/lua/lua-guestfs.c:11646: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11652: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3164:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def480] libguestfs-1.22.0/lua/lua-guestfs.c:11666: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11671: var_deref_model: Passing null pointer "g" to function "guestfs_sync(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:629:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def481] libguestfs-1.22.0/lua/lua-guestfs.c:11688: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11702: var_deref_model: Passing null pointer "g" to function "guestfs_syslinux_argv(guestfs_h *, char const *, struct guestfs_syslinux_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6742:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def482] libguestfs-1.22.0/lua/lua-guestfs.c:11768: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11783: var_deref_model: Passing null pointer "g" to function "guestfs_tar_in_opts_argv(guestfs_h *, char const *, char const *, struct guestfs_tar_in_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2510:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def483] libguestfs-1.22.0/lua/lua-guestfs.c:11841: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11848: var_deref_model: Passing null pointer "g" to function "guestfs_tgz_in(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1737:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def484] libguestfs-1.22.0/lua/lua-guestfs.c:11864: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11871: var_deref_model: Passing null pointer "g" to function "guestfs_tgz_out(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1332:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def485] libguestfs-1.22.0/lua/lua-guestfs.c:11886: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11892: var_deref_model: Passing null pointer "g" to function "guestfs_touch(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:990:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def486] libguestfs-1.22.0/lua/lua-guestfs.c:11907: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:11913: var_deref_model: Passing null pointer "g" to function "guestfs_truncate(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4825:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def487] libguestfs-1.22.0/lua/lua-guestfs.c:12018: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12024: var_deref_model: Passing null pointer "g" to function "guestfs_tune2fs_l(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1870:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def488] libguestfs-1.22.0/lua/lua-guestfs.c:12042: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12049: var_deref_model: Passing null pointer "g" to function "guestfs_txz_in(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4079:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def489] libguestfs-1.22.0/lua/lua-guestfs.c:12065: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12072: var_deref_model: Passing null pointer "g" to function "guestfs_txz_out(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3736:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def490] libguestfs-1.22.0/lua/lua-guestfs.c:12087: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12093: var_deref_model: Passing null pointer "g" to function "guestfs_umask(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:2248:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def491] libguestfs-1.22.0/lua/lua-guestfs.c:12111: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12129: var_deref_model: Passing null pointer "g" to function "guestfs_umount_opts_argv(guestfs_h *, char const *, struct guestfs_umount_opts_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:1474:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def492] libguestfs-1.22.0/lua/lua-guestfs.c:12143: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12148: var_deref_model: Passing null pointer "g" to function "guestfs_umount_all(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1230:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def493] libguestfs-1.22.0/lua/lua-guestfs.c:12164: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12177: var_deref_model: Passing null pointer "g" to function "guestfs_umount_local_argv(guestfs_h *, struct guestfs_umount_local_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1043:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def494] libguestfs-1.22.0/lua/lua-guestfs.c:12193: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12200: var_deref_model: Passing null pointer "g" to function "guestfs_upload(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2280:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def495] libguestfs-1.22.0/lua/lua-guestfs.c:12239: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12244: var_deref_model: Passing null pointer "g" to function "guestfs_user_cancel(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/proto.c:871:3: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def496] libguestfs-1.22.0/lua/lua-guestfs.c:12287: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12292: var_deref_model: Passing null pointer "g" to function "guestfs_utsname(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:5007:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def497] libguestfs-1.22.0/lua/lua-guestfs.c:12330: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12336: var_deref_model: Passing null pointer "g" to function "guestfs_vfs_label(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4199:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def498] libguestfs-1.22.0/lua/lua-guestfs.c:12353: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12359: var_deref_model: Passing null pointer "g" to function "guestfs_vfs_type(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:3587:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def499] libguestfs-1.22.0/lua/lua-guestfs.c:12376: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12382: var_deref_model: Passing null pointer "g" to function "guestfs_vfs_uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:5420:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def500] libguestfs-1.22.0/lua/lua-guestfs.c:12423: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12429: var_deref_model: Passing null pointer "g" to function "guestfs_vg_activate_all(guestfs_h *, int)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2596:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def501] libguestfs-1.22.0/lua/lua-guestfs.c:12444: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12450: var_deref_model: Passing null pointer "g" to function "guestfs_vgchange_uuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6480:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def502] libguestfs-1.22.0/lua/lua-guestfs.c:12464: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12469: var_deref_model: Passing null pointer "g" to function "guestfs_vgchange_uuid_all(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5531:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def503] libguestfs-1.22.0/lua/lua-guestfs.c:12532: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12538: var_deref_model: Passing null pointer "g" to function "guestfs_vgmeta(guestfs_h *, char const *, size_t *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5227:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def504] libguestfs-1.22.0/lua/lua-guestfs.c:12578: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12584: var_deref_model: Passing null pointer "g" to function "guestfs_vgremove(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:1855:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def505] libguestfs-1.22.0/lua/lua-guestfs.c:12600: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12607: var_deref_model: Passing null pointer "g" to function "guestfs_vgrename(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3883:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def506] libguestfs-1.22.0/lua/lua-guestfs.c:12663: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12668: var_deref_model: Passing null pointer "g" to function "guestfs_vgscan(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3998:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def507] libguestfs-1.22.0/lua/lua-guestfs.c:12683: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12689: var_deref_model: Passing null pointer "g" to function "guestfs_vguuid(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:3985:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def508] libguestfs-1.22.0/lua/lua-guestfs.c:12705: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12710: var_deref_model: Passing null pointer "g" to function "guestfs_wait_ready(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:201:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def509] libguestfs-1.22.0/lua/lua-guestfs.c:12725: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12731: var_deref_model: Passing null pointer "g" to function "guestfs_wc_c(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:2100:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def510] libguestfs-1.22.0/lua/lua-guestfs.c:12747: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12753: var_deref_model: Passing null pointer "g" to function "guestfs_wc_l(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:2252:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def511] libguestfs-1.22.0/lua/lua-guestfs.c:12769: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12775: var_deref_model: Passing null pointer "g" to function "guestfs_wc_w(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2779:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def512] libguestfs-1.22.0/lua/lua-guestfs.c:12791: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12797: var_deref_model: Passing null pointer "g" to function "guestfs_wipefs(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:4828:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def513] libguestfs-1.22.0/lua/lua-guestfs.c:12814: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12821: var_deref_model: Passing null pointer "g" to function "guestfs_write(guestfs_h *, char const *, char const *, size_t)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1132:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def514] libguestfs-1.22.0/lua/lua-guestfs.c:12838: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12845: var_deref_model: Passing null pointer "g" to function "guestfs_write_append(guestfs_h *, char const *, char const *, size_t)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:768:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def515] libguestfs-1.22.0/lua/lua-guestfs.c:12862: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12870: var_deref_model: Passing null pointer "g" to function "guestfs_write_file(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1889:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def516] libguestfs-1.22.0/lua/lua-guestfs.c:12887: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:12925: var_deref_model: Passing null pointer "g" to function "guestfs_xfs_admin_argv(guestfs_h *, char const *, struct guestfs_xfs_admin_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:6095:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def517] libguestfs-1.22.0/lua/lua-guestfs.c:12999: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13005: var_deref_model: Passing null pointer "g" to function "guestfs_xfs_info(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6384:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def518] libguestfs-1.22.0/lua/lua-guestfs.c:13140: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13146: var_deref_model: Passing null pointer "g" to function "guestfs_zero(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:2744:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def519] libguestfs-1.22.0/lua/lua-guestfs.c:13161: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13167: var_deref_model: Passing null pointer "g" to function "guestfs_zero_device(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:3984:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def520] libguestfs-1.22.0/lua/lua-guestfs.c:13182: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13188: var_deref_model: Passing null pointer "g" to function "guestfs_zero_free_space(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:5700:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def521] libguestfs-1.22.0/lua/lua-guestfs.c:13203: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13209: var_deref_model: Passing null pointer "g" to function "guestfs_zerofree(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:3220:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def522] libguestfs-1.22.0/lua/lua-guestfs.c:13275: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:13282: var_deref_model: Passing null pointer "g" to function "guestfs_zfile(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2707:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def523] libguestfs-1.22.0/lua/lua-guestfs.c:8756: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8770: var_deref_model: Passing null pointer "g" to function "guestfs_mktemp_argv(guestfs_h *, char const *, struct guestfs_mktemp_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:6316:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def524] libguestfs-1.22.0/lua/lua-guestfs.c:4584: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4591: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_add_watch(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:4121:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def525] libguestfs-1.22.0/lua/lua-guestfs.c:2433: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2438: var_deref_model: Passing null pointer "g" to function "guestfs_df_h(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:2873:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def526] libguestfs-1.22.0/lua/lua-guestfs.c:1289: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1296: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_setbsz(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:1315:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def527] libguestfs-1.22.0/lua/lua-guestfs.c:849: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:857: var_deref_model: Passing null pointer "g" to function "guestfs_aug_insert(guestfs_h *, char const *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:1049:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def528] libguestfs-1.22.0/lua/lua-guestfs.c:665: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:672: var_deref_model: Passing null pointer "g" to function "guestfs_add_drive_ro_with_if(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:435:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def529] libguestfs-1.22.0/lua/lua-guestfs.c:483: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:491: var_deref_model: Passing null pointer "g" to function "guestfs_acl_set_file(guestfs_h *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:7226:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def530] libguestfs-1.22.0/lua/lua-guestfs.c:435: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:441: var_deref_model: Passing null pointer "g" to function "guestfs_acl_delete_def_file(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:6296:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def531] libguestfs-1.22.0/lua/lua-guestfs.c:4218: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:4224: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_delete_child(guestfs_h *, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:6836:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def532] libguestfs-1.22.0/lua/lua-guestfs.c:9964: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9972: var_deref_model: Passing null pointer "g" to function "guestfs_pwrite(guestfs_h *, char const *, char const *, size_t, int64_t)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:4084:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def533] libguestfs-1.22.0/lua/lua-guestfs.c:9110: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9117: var_deref_model: Passing null pointer "g" to function "guestfs_ntfs_3g_probe(guestfs_h *, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:2189:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def534] libguestfs-1.22.0/lua/lua-guestfs.c:9409: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:9416: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_bootable(guestfs_h *, char const *, int)", which dereferences it. libguestfs-1.22.0/src/actions-5.c:4199:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def535] libguestfs-1.22.0/lua/lua-guestfs.c:1810: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1818: var_deref_model: Passing null pointer "g" to function "guestfs_checksums_out(guestfs_h *, char const *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:4107:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def536] libguestfs-1.22.0/lua/lua-guestfs.c:6558: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6566: var_deref_model: Passing null pointer "g" to function "guestfs_lchown(guestfs_h *, int, int, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:3684:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def537] libguestfs-1.22.0/lua/lua-guestfs.c:7934: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:7940: var_deref_model: Passing null pointer "g" to function "guestfs_md_stop(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:5008:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def538] libguestfs-1.22.0/lua/lua-guestfs.c:2000: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2007: var_deref_model: Passing null pointer "g" to function "guestfs_config(guestfs_h *, char const *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:266:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def539] libguestfs-1.22.0/lua/lua-guestfs.c:3369: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:3374: var_deref_model: Passing null pointer "g" to function "guestfs_get_direct(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:235:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def540] libguestfs-1.22.0/lua/lua-guestfs.c:506: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:512: var_deref_model: Passing null pointer "g" to function "guestfs_add_cdrom(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:229:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def541] libguestfs-1.22.0/lua/lua-guestfs.c:1905: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1911: var_deref_model: Passing null pointer "g" to function "guestfs_command_lines(guestfs_h *, char * const *)", which dereferences it. libguestfs-1.22.0/src/actions-0.c:1980:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def542] libguestfs-1.22.0/lua/lua-guestfs.c:2344: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2349: var_deref_model: Passing null pointer "g" to function "guestfs_debug_drives(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-1.c:524:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def543] libguestfs-1.22.0/lua/lua-guestfs.c:6019: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6024: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstringlisterr(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:134:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def544] libguestfs-1.22.0/lua/lua-guestfs.c:6877: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6882: var_deref_model: Passing null pointer "g" to function "guestfs_list_devices(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:742:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def545] libguestfs-1.22.0/lua/lua-guestfs.c:1267: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:1273: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_rereadpt(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:1612:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def546] libguestfs-1.22.0/lua/lua-guestfs.c:6234: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6240: var_deref_model: Passing null pointer "g" to function "guestfs_is_dir(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-3.c:1792:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def547] libguestfs-1.22.0/lua/lua-guestfs.c:8787: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:8793: var_deref_model: Passing null pointer "g" to function "guestfs_modprobe(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:3334:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def548] libguestfs-1.22.0/lua/lua-guestfs.c:6171: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:6176: var_deref_model: Passing null pointer "g" to function "guestfs_is_busy(guestfs_h *)", which dereferences it. libguestfs-1.22.0/src/actions-4.c:343:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def549] libguestfs-1.22.0/lua/lua-guestfs.c:5089: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:5095: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_windows_current_control_set(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:632:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def550] libguestfs-1.22.0/lua/lua-guestfs.c:10039: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:10045: var_deref_model: Passing null pointer "g" to function "guestfs_read_lines(guestfs_h *, char const *)", which dereferences it. libguestfs-1.22.0/src/actions-6.c:490:18: deref_parm: Directly dereferencing parameter "g". Error: FORWARD_NULL (CWE-476): [#def551] libguestfs-1.22.0/lua/lua-guestfs.c:2070: var_compare_op: Comparing "g" to null implies that "g" might be null. libguestfs-1.22.0/lua/lua-guestfs.c:2097: var_deref_model: Passing null pointer "g" to function "guestfs_copy_device_to_file_argv(guestfs_h *, char const *, char const *, struct guestfs_copy_device_to_file_argv const *)", which dereferences it. libguestfs-1.22.0/src/actions-2.c:4580:18: deref_parm: Directly dereferencing parameter "g". Error: MISSING_BREAK (CWE-484): [#def552] libguestfs-1.22.0/src/inspect-fs-unix.c:1119: unterminated_case: This case (value -1) is not terminated by a 'break' statement. libguestfs-1.22.0/src/inspect-fs-unix.c:1122: fallthrough: The above case falls through to this one. Error: NEGATIVE_RETURNS (CWE-394): [#def553] libguestfs-1.22.0/src/drives.c:494: var_tested_neg: Variable "fd" tests negative. libguestfs-1.22.0/src/drives.c:496: negative_returns: "fd" is passed to a parameter that cannot be negative. Error: NULL_RETURNS (CWE-476): [#def554] libguestfs-1.22.0/src/inspect-fs-unix.c:353: returned_null: Function "guestfs___match1(guestfs_h *, char const *, pcre const *)" returns null (checked 8 out of 10 times). libguestfs-1.22.0/src/match.c:58:5: return_null: Explicitly returning null. libguestfs-1.22.0/src/filearch.c:218: example_assign: Example1: Assigning: "elf_arch" = return value from "guestfs___match1(g, line, re_file_elf)". libguestfs-1.22.0/src/filearch.c:219: example_checked: Example1 (cont.): "elf_arch" has its value checked in "elf_arch != NULL". libguestfs-1.22.0/src/filearch.c:249: example_checked: Example2: "guestfs___match1(g, file, re_file_elf)" has its value checked in "(elf_arch = guestfs___match1(g, file, re_file_elf)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:417: example_checked: Example3: "guestfs___match1(g, fs->product_name, re_fedora)" has its value checked in "(major = guestfs___match1(g, fs->product_name, re_fedora)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:1438: example_checked: Example4: "guestfs___match1(g, spec, re_mdN)" has its value checked in "(disk = guestfs___match1(g, spec, re_mdN)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:1467: example_checked: Example5: "guestfs___match1(g, spec, re_diskbyid)" has its value checked in "(part = guestfs___match1(g, spec, re_diskbyid)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:353: var_assigned: Assigning: "major" = null return value from "guestfs___match1(guestfs_h *, char const *, pcre const *)". libguestfs-1.22.0/src/inspect-fs-unix.c:354: dereference: Dereferencing a pointer that might be null "major" when calling "guestfs___parse_unsigned_int(guestfs_h *, char const *)". libguestfs-1.22.0/src/inspect-fs.c:386:9: deref_parm_in_call: Function "xstrtol(char const *, char **, int, long *, char const *)" dereferences "str". libguestfs-1.22.0/gnulib/lib/xstrtol.c:111:3: deref_parm_in_call: Function "strtol(char const * restrict, char ** restrict, int)" dereferences "s". Error: NULL_RETURNS (CWE-476): [#def555] libguestfs-1.22.0/src/inspect-fs-unix.c:362: returned_null: Function "guestfs___match1(guestfs_h *, char const *, pcre const *)" returns null (checked 8 out of 10 times). libguestfs-1.22.0/src/match.c:58:5: return_null: Explicitly returning null. libguestfs-1.22.0/src/filearch.c:218: example_assign: Example1: Assigning: "elf_arch" = return value from "guestfs___match1(g, line, re_file_elf)". libguestfs-1.22.0/src/filearch.c:219: example_checked: Example1 (cont.): "elf_arch" has its value checked in "elf_arch != NULL". libguestfs-1.22.0/src/filearch.c:249: example_checked: Example2: "guestfs___match1(g, file, re_file_elf)" has its value checked in "(elf_arch = guestfs___match1(g, file, re_file_elf)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:417: example_checked: Example3: "guestfs___match1(g, fs->product_name, re_fedora)" has its value checked in "(major = guestfs___match1(g, fs->product_name, re_fedora)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:1438: example_checked: Example4: "guestfs___match1(g, spec, re_mdN)" has its value checked in "(disk = guestfs___match1(g, spec, re_mdN)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:1467: example_checked: Example5: "guestfs___match1(g, spec, re_diskbyid)" has its value checked in "(part = guestfs___match1(g, spec, re_diskbyid)) != NULL". libguestfs-1.22.0/src/inspect-fs-unix.c:362: var_assigned: Assigning: "minor" = null return value from "guestfs___match1(guestfs_h *, char const *, pcre const *)". libguestfs-1.22.0/src/inspect-fs-unix.c:363: dereference: Dereferencing a pointer that might be null "minor" when calling "guestfs___parse_unsigned_int(guestfs_h *, char const *)". libguestfs-1.22.0/src/inspect-fs.c:386:9: deref_parm_in_call: Function "xstrtol(char const *, char **, int, long *, char const *)" dereferences "str". libguestfs-1.22.0/gnulib/lib/xstrtol.c:111:3: deref_parm_in_call: Function "strtol(char const * restrict, char ** restrict, int)" dereferences "s". Error: NULL_RETURNS (CWE-476): [#def556] libguestfs-1.22.0/gnulib/lib/glob.c:998: returned_null: Function "__coverity_strchr(char const *, int)" returns null (checked 44 out of 45 times). libguestfs-1.22.0/cat/virt-cat.c:181: example_checked: Example1: "__coverity_strchr(argv[optind], 47)" has its value checked in "__coverity_strchr(argv[optind], 47)". libguestfs-1.22.0/cat/virt-ls.c:286: example_checked: Example2: "__coverity_strchr(argv[optind], 47)" has its value checked in "__coverity_strchr(argv[optind], 47)". libguestfs-1.22.0/daemon/blkid.c:166: example_assign: Example3: Assigning: "eq" = return value from "__coverity_strchr(line, 61)". libguestfs-1.22.0/daemon/blkid.c:167: example_checked: Example3 (cont.): "eq" has its value checked in "eq". libguestfs-1.22.0/daemon/ext2.c:77: example_assign: Example4: Assigning: "colon" = return value from "__coverity_strchr(p, 58)". libguestfs-1.22.0/daemon/ext2.c:78: example_checked: Example4 (cont.): "colon" has its value checked in "colon". libguestfs-1.22.0/daemon/guestfsd.c:1030: example_assign: Example5: Assigning: "pend" = return value from "__coverity_strchr(p, 10)". libguestfs-1.22.0/daemon/guestfsd.c:1031: example_checked: Example5 (cont.): "pend" has its value checked in "pend". libguestfs-1.22.0/gnulib/lib/glob.c:998: var_assigned: Assigning: "p" = null return value from "__coverity_strchr(char const *, int)". libguestfs-1.22.0/gnulib/lib/glob.c:1002: alias: Assigning: "q" = "p". Both pointers are now null. libguestfs-1.22.0/gnulib/lib/glob.c:1005: dereference: Dereferencing a null pointer "p". Error: NULL_RETURNS (CWE-476): [#def557] libguestfs-1.22.0/fish/options.c:273: returned_null: Function "malloc(size_t)" returns null (checked 145 out of 166 times). libguestfs-1.22.0/cat/virt-cat.c:316: example_assign: Example1: Assigning: "__retval" = return value from "malloc(__len)". libguestfs-1.22.0/cat/virt-cat.c:316: example_checked: Example1 (cont.): "__retval" has its value checked in "__retval != NULL". libguestfs-1.22.0/cat/virt-filesystems.c:1007: example_assign: Example2: Assigning: "row" = return value from "malloc(8UL * len)". libguestfs-1.22.0/cat/virt-filesystems.c:1008: example_checked: Example2 (cont.): "row" has its value checked in "row == NULL". libguestfs-1.22.0/daemon/9p.c:206: example_assign: Example3: Assigning: "__retval" = return value from "malloc(__len)". libguestfs-1.22.0/daemon/9p.c:206: example_checked: Example3 (cont.): "__retval" has its value checked in "__retval != NULL". libguestfs-1.22.0/daemon/augeas.c:140: example_assign: Example4: Assigning: "r" = return value from "malloc(8UL)". libguestfs-1.22.0/daemon/augeas.c:141: example_checked: Example4 (cont.): "r" has its value checked in "r == NULL". libguestfs-1.22.0/daemon/file.c:321: example_assign: Example5: Assigning: "buf" = return value from "malloc(count)". libguestfs-1.22.0/daemon/file.c:322: example_checked: Example5 (cont.): "buf" has its value checked in "buf == NULL". libguestfs-1.22.0/fish/options.c:273: var_assigned: Assigning: "ret" = null return value from "malloc(size_t)". libguestfs-1.22.0/fish/options.c:274: dereference: Dereferencing a null pointer "ret". Error: OVERRUN (CWE-119): [#def558] libguestfs-1.22.0/gnulib/lib/glob.c:445: strlen_assign: Setting variable "dirlen" to the return value of strlen called with argument "pattern". libguestfs-1.22.0/gnulib/lib/glob.c:664: strlen_assign: Setting variable "home_len" to the return value of strlen called with argument "home_dir". libguestfs-1.22.0/gnulib/lib/glob.c:665: alloc_strlen: Allocating insufficient memory for the terminating null of the string. Error: OVERRUN (CWE-119): [#def559] libguestfs-1.22.0/src/appliance.c:410: strlen_assign: Setting variable "clen" to the return value of strlen called with argument "checksum". libguestfs-1.22.0/src/appliance.c:411: alloc_strlen: Allocating insufficient memory for the terminating null of the string. Error: RESOURCE_LEAK (CWE-772): [#def560] libguestfs-1.22.0/daemon/guestfsd.c:842: open_fn: Returning handle opened by function "open(char const *, int, ...)". libguestfs-1.22.0/daemon/guestfsd.c:842: var_assign: Assigning: "__x" = handle returned from "open("/dev/null", 524288)". libguestfs-1.22.0/daemon/guestfsd.c:842: leaked_handle: Handle variable "__x" going out of scope leaks the handle. Error: RESOURCE_LEAK (CWE-772): [#def561] libguestfs-1.22.0/src/drives.c:802: alloc_fn: Storage is returned from allocation function "guestfs___safe_calloc(guestfs_h *, size_t, size_t)". libguestfs-1.22.0/src/alloc.c:77:3: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". libguestfs-1.22.0/src/alloc.c:77:3: var_assign: Assigning: "p" = "calloc(n, s)". libguestfs-1.22.0/src/alloc.c:80:3: return_alloc: Returning allocated memory "p". libguestfs-1.22.0/src/drives.c:802: var_assign: Assigning: "servers" = storage returned from "guestfs___safe_calloc(g, n, 24UL)". libguestfs-1.22.0/src/drives.c:805: noescape: Resource "servers + i" is not freed or pointed-to in function "parse_one_server(guestfs_h *, char const *, struct drive_server *)". libguestfs-1.22.0/src/drives.c:733:74: noescape: "parse_one_server(guestfs_h *, char const *, struct drive_server *)" does not free or save its pointer parameter "ret". libguestfs-1.22.0/src/drives.c:808: leaked_storage: Variable "servers" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def562] libguestfs-1.22.0/daemon/checksum.c:106: open_fn: Returning handle opened by function "open(char const *, int, ...)". libguestfs-1.22.0/daemon/checksum.c:106: var_assign: Assigning: "fd" = handle returned from "open(path, 524288)". libguestfs-1.22.0/daemon/checksum.c:114: leaked_handle: Handle variable "fd" going out of scope leaks the handle. Error: RESOURCE_LEAK (CWE-772): [#def563] libguestfs-1.22.0/daemon/checksum.c:122: open_fn: Returning handle opened by function "open(char const *, int, ...)". libguestfs-1.22.0/daemon/checksum.c:122: var_assign: Assigning: "fd" = handle returned from "open(device, 524288)". libguestfs-1.22.0/daemon/checksum.c:128: leaked_handle: Handle variable "fd" going out of scope leaks the handle. Error: RESOURCE_LEAK (CWE-772): [#def564] libguestfs-1.22.0/erlang/erl-guestfs.c:6064: alloc_fn: Storage is returned from allocation function "get_string_list(ETERM *)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:259:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:259:3: var_assign: Assigning: "r" = "malloc((size + 1UL) * 8UL)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:267:3: return_alloc: Returning allocated memory "r". libguestfs-1.22.0/erlang/erl-guestfs.c:6064: var_assign: Assigning: "devices" = storage returned from "get_string_list(message->uval.tval.elems[2])". libguestfs-1.22.0/erlang/erl-guestfs.c:6099: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def565] libguestfs-1.22.0/erlang/erl-guestfs.c:4133: alloc_fn: Storage is returned from allocation function "get_string_list(ETERM *)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:259:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:259:3: var_assign: Assigning: "r" = "malloc((size + 1UL) * 8UL)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:267:3: return_alloc: Returning allocated memory "r". libguestfs-1.22.0/erlang/erl-guestfs.c:4133: var_assign: Assigning: "strlist" = storage returned from "get_string_list(message->uval.tval.elems[3])". libguestfs-1.22.0/erlang/erl-guestfs.c:4176: leaked_storage: Variable "strlist" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def566] libguestfs-1.22.0/erlang/erl-guestfs.c:6644: alloc_fn: Storage is returned from allocation function "get_string_list(ETERM *)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:259:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:259:3: var_assign: Assigning: "r" = "malloc((size + 1UL) * 8UL)". libguestfs-1.22.0/erlang/erl-guestfs-proto.c:267:3: return_alloc: Returning allocated memory "r". libguestfs-1.22.0/erlang/erl-guestfs.c:6644: var_assign: Assigning: "devices" = storage returned from "get_string_list(message->uval.tval.elems[1])". libguestfs-1.22.0/erlang/erl-guestfs.c:6694: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def567] libguestfs-1.22.0/src/conn-socket.c:364: alloc_fn: Storage is returned from allocation function "guestfs___safe_malloc(guestfs_h *, size_t)". libguestfs-1.22.0/src/alloc.c:38:13: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/src/alloc.c:38:13: var_assign: Assigning: "ptr" = "malloc(nbytes)". libguestfs-1.22.0/src/alloc.c:40:3: return_alloc: Returning allocated memory "ptr". libguestfs-1.22.0/src/conn-socket.c:364: var_assign: Assigning: "conn" = storage returned from "guestfs___safe_malloc(g, 24UL)". libguestfs-1.22.0/src/conn-socket.c:370: leaked_storage: Variable "conn" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def568] libguestfs-1.22.0/src/conn-socket.c:364: alloc_fn: Storage is returned from allocation function "guestfs___safe_malloc(guestfs_h *, size_t)". libguestfs-1.22.0/src/alloc.c:38:13: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/src/alloc.c:38:13: var_assign: Assigning: "ptr" = "malloc(nbytes)". libguestfs-1.22.0/src/alloc.c:40:3: return_alloc: Returning allocated memory "ptr". libguestfs-1.22.0/src/conn-socket.c:364: var_assign: Assigning: "conn" = storage returned from "guestfs___safe_malloc(g, 24UL)". libguestfs-1.22.0/src/conn-socket.c:376: leaked_storage: Variable "conn" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def569] libguestfs-1.22.0/src/conn-socket.c:401: alloc_fn: Storage is returned from allocation function "guestfs___safe_malloc(guestfs_h *, size_t)". libguestfs-1.22.0/src/alloc.c:38:13: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/src/alloc.c:38:13: var_assign: Assigning: "ptr" = "malloc(nbytes)". libguestfs-1.22.0/src/alloc.c:40:3: return_alloc: Returning allocated memory "ptr". libguestfs-1.22.0/src/conn-socket.c:401: var_assign: Assigning: "conn" = storage returned from "guestfs___safe_malloc(g, 24UL)". libguestfs-1.22.0/src/conn-socket.c:407: leaked_storage: Variable "conn" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def570] libguestfs-1.22.0/src/conn-socket.c:401: alloc_fn: Storage is returned from allocation function "guestfs___safe_malloc(guestfs_h *, size_t)". libguestfs-1.22.0/src/alloc.c:38:13: alloc_fn: Storage is returned from allocation function "malloc(size_t)". libguestfs-1.22.0/src/alloc.c:38:13: var_assign: Assigning: "ptr" = "malloc(nbytes)". libguestfs-1.22.0/src/alloc.c:40:3: return_alloc: Returning allocated memory "ptr". libguestfs-1.22.0/src/conn-socket.c:401: var_assign: Assigning: "conn" = storage returned from "guestfs___safe_malloc(g, 24UL)". libguestfs-1.22.0/src/conn-socket.c:413: leaked_storage: Variable "conn" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): [#def571] libguestfs-1.22.0/src/launch-direct.c:495: open_fn: Returning handle opened by function "dup(int)". libguestfs-1.22.0/src/launch-direct.c:495: leaked_handle: Ignoring handle opened by "dup(sv[1])" leaks it. Error: RESOURCE_LEAK (CWE-772): [#def572] libguestfs-1.22.0/src/launch-direct.c:501: open_fn: Returning handle opened by function "dup(int)". libguestfs-1.22.0/src/launch-direct.c:501: leaked_handle: Ignoring handle opened by "dup(sv[1])" leaks it. Error: RESOURCE_LEAK (CWE-772): [#def573] libguestfs-1.22.0/src/launch-direct.c:509: open_fn: Returning handle opened by function "dup(int)". libguestfs-1.22.0/src/launch-direct.c:509: leaked_handle: Ignoring handle opened by "dup(sv[1])" leaks it. Error: SIZEOF_MISMATCH (CWE-398): [#def574] libguestfs-1.22.0/src/drives.c:1321: suspicious_sizeof: Passing argument "8UL /* sizeof (char *) */ * n" to function "guestfs___safe_malloc(guestfs_h *, size_t)" and then casting the return value to "char *" is suspicious. Error: UNINIT (CWE-457): [#def575] libguestfs-1.22.0/daemon/ldm.c:54: var_decl: Declaring variable "devs" without initializer. libguestfs-1.22.0/daemon/ldm.c:58: uninit_use_in_call: Using uninitialized value "devs.gl_pathc" when calling "rpl_glob(char const * restrict, int, int (*)(char const *, int), glob_t * restrict)". libguestfs-1.22.0/gnulib/lib/glob.c:556:3: read_parm_fld: Reading a parameter field. Error: UNUSED_VALUE (CWE-563): [#def576] libguestfs-1.22.0/python/guestfs-py.c:4031: returned_pointer: Pointer "optargs_s.iface" returned by "PyString_AsString(py_iface)" is never used. Error: UNUSED_VALUE (CWE-563): [#def577] libguestfs-1.22.0/python/guestfs-py.c:4016: returned_pointer: Pointer "optargs_s.libvirturi" returned by "PyString_AsString(py_libvirturi)" is never used. Error: UNUSED_VALUE (CWE-563): [#def578] libguestfs-1.22.0/python/guestfs-py.c:4051: returned_pointer: Pointer "optargs_s.readonlydisk" returned by "PyString_AsString(py_readonlydisk)" is never used. Error: UNUSED_VALUE (CWE-563): [#def579] libguestfs-1.22.0/python/guestfs-py.c:19879: returned_pointer: Pointer "optargs_s.creatoros" returned by "PyString_AsString(py_creatoros)" is never used. Error: UNUSED_VALUE (CWE-563): [#def580] libguestfs-1.22.0/python/guestfs-py.c:19889: returned_pointer: Pointer "optargs_s.fstype" returned by "PyString_AsString(py_fstype)" is never used. Error: UNUSED_VALUE (CWE-563): [#def581] libguestfs-1.22.0/python/guestfs-py.c:19849: returned_pointer: Pointer "optargs_s.journaldevice" returned by "PyString_AsString(py_journaldevice)" is never used. Error: UNUSED_VALUE (CWE-563): [#def582] libguestfs-1.22.0/python/guestfs-py.c:19859: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used. Error: UNUSED_VALUE (CWE-563): [#def583] libguestfs-1.22.0/python/guestfs-py.c:19869: returned_pointer: Pointer "optargs_s.lastmounteddir" returned by "PyString_AsString(py_lastmounteddir)" is never used. Error: UNUSED_VALUE (CWE-563): [#def584] libguestfs-1.22.0/python/guestfs-py.c:19899: returned_pointer: Pointer "optargs_s.usagetype" returned by "PyString_AsString(py_usagetype)" is never used. Error: UNUSED_VALUE (CWE-563): [#def585] libguestfs-1.22.0/python/guestfs-py.c:19909: returned_pointer: Pointer "optargs_s.uuid" returned by "PyString_AsString(py_uuid)" is never used. Error: UNUSED_VALUE (CWE-563): [#def586] libguestfs-1.22.0/python/guestfs-py.c:15833: returned_pointer: Pointer "optargs_s.features" returned by "PyString_AsString(py_features)" is never used. Error: UNUSED_VALUE (CWE-563): [#def587] libguestfs-1.22.0/python/guestfs-py.c:10587: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used. Error: UNUSED_VALUE (CWE-563): [#def588] libguestfs-1.22.0/python/guestfs-py.c:10597: returned_pointer: Pointer "optargs_s.uuid" returned by "PyString_AsString(py_uuid)" is never used. Error: UNUSED_VALUE (CWE-563): [#def589] libguestfs-1.22.0/python/guestfs-py.c:20079: returned_pointer: Pointer "optargs_s.suffix" returned by "PyString_AsString(py_suffix)" is never used. Error: UNUSED_VALUE (CWE-563): [#def590] libguestfs-1.22.0/python/guestfs-py.c:16114: returned_pointer: Pointer "optargs_s.options" returned by "PyString_AsString(py_options)" is never used. Error: UNUSED_VALUE (CWE-563): [#def591] libguestfs-1.22.0/python/guestfs-py.c:4833: returned_pointer: Pointer "optargs_s.options" returned by "PyString_AsString(py_options)" is never used. Error: UNUSED_VALUE (CWE-563): [#def592] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:464: returned_pointer: Pointer "optargs_s.ostring" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def593] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:19433: returned_pointer: Pointer "optargs_s.level" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def594] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:18170: returned_pointer: Pointer "optargs_s.features" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def595] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:20371: returned_pointer: Pointer "optargs_s.datatype" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def596] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:20381: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def597] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:20386: returned_pointer: Pointer "optargs_s.metadata" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def598] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:19272: returned_pointer: Pointer "optargs_s.errorbehavior" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def599] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:19292: returned_pointer: Pointer "optargs_s.lastmounteddirectory" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def600] libguestfs-1.22.0/python/guestfs-py.c:20975: returned_pointer: Pointer "optargs_s.directory" returned by "PyString_AsString(py_directory)" is never used. Error: UNUSED_VALUE (CWE-563): [#def601] libguestfs-1.22.0/python/guestfs-py.c:8365: returned_pointer: Pointer "optargs_s.compress" returned by "PyString_AsString(py_compress)" is never used. Error: UNUSED_VALUE (CWE-563): [#def602] libguestfs-1.22.0/python/guestfs-py.c:1171: returned_pointer: Pointer "optargs_s.ostring" returned by "PyString_AsString(py_ostring)" is never used. Error: UNUSED_VALUE (CWE-563): [#def603] libguestfs-1.22.0/python/guestfs-py.c:16825: returned_pointer: Pointer "optargs_s.level" returned by "PyString_AsString(py_level)" is never used. Error: UNUSED_VALUE (CWE-563): [#def604] libguestfs-1.22.0/python/guestfs-py.c:17568: returned_pointer: Pointer "optargs_s.datatype" returned by "PyString_AsString(py_datatype)" is never used. Error: UNUSED_VALUE (CWE-563): [#def605] libguestfs-1.22.0/python/guestfs-py.c:17583: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used. Error: UNUSED_VALUE (CWE-563): [#def606] libguestfs-1.22.0/python/guestfs-py.c:17593: returned_pointer: Pointer "optargs_s.metadata" returned by "PyString_AsString(py_metadata)" is never used. Error: UNUSED_VALUE (CWE-563): [#def607] libguestfs-1.22.0/python/guestfs-py.c:8419: returned_pointer: Pointer "optargs_s.compress" returned by "PyString_AsString(py_compress)" is never used. Error: UNUSED_VALUE (CWE-563): [#def608] libguestfs-1.22.0/python/guestfs-py.c:18942: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used. Error: UNUSED_VALUE (CWE-563): [#def609] libguestfs-1.22.0/python/guestfs-py.c:18952: returned_pointer: Pointer "optargs_s.uuid" returned by "PyString_AsString(py_uuid)" is never used. Error: UNUSED_VALUE (CWE-563): [#def610] libguestfs-1.22.0/python/guestfs-py.c:19647: returned_pointer: Pointer "optargs_s.logdev" returned by "PyString_AsString(py_logdev)" is never used. Error: UNUSED_VALUE (CWE-563): [#def611] libguestfs-1.22.0/python/guestfs-py.c:19657: returned_pointer: Pointer "optargs_s.rtdev" returned by "PyString_AsString(py_rtdev)" is never used. Error: UNUSED_VALUE (CWE-563): [#def612] libguestfs-1.22.0/lua/lua-guestfs.c:545: returned_pointer: Pointer "optargs_s.iface" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def613] libguestfs-1.22.0/lua/lua-guestfs.c:537: returned_pointer: Pointer "optargs_s.libvirturi" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def614] libguestfs-1.22.0/lua/lua-guestfs.c:557: returned_pointer: Pointer "optargs_s.readonlydisk" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def615] libguestfs-1.22.0/lua/lua-guestfs.c:8415: returned_pointer: Pointer "optargs_s.features" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def616] libguestfs-1.22.0/lua/lua-guestfs.c:8662: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def617] libguestfs-1.22.0/lua/lua-guestfs.c:8666: returned_pointer: Pointer "optargs_s.uuid" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def618] libguestfs-1.22.0/lua/lua-guestfs.c:8843: returned_pointer: Pointer "optargs_s.options" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def619] libguestfs-1.22.0/lua/lua-guestfs.c:8878: returned_pointer: Pointer "optargs_s.options" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def620] libguestfs-1.22.0/lua/lua-guestfs.c:593: returned_pointer: Pointer "optargs_s.format" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def621] libguestfs-1.22.0/lua/lua-guestfs.c:597: returned_pointer: Pointer "optargs_s.iface" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def622] libguestfs-1.22.0/lua/lua-guestfs.c:605: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def623] libguestfs-1.22.0/lua/lua-guestfs.c:601: returned_pointer: Pointer "optargs_s.name" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def624] libguestfs-1.22.0/lua/lua-guestfs.c:609: returned_pointer: Pointer "optargs_s.protocol" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def625] libguestfs-1.22.0/lua/lua-guestfs.c:621: returned_pointer: Pointer "optargs_s.secret" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def626] libguestfs-1.22.0/lua/lua-guestfs.c:617: returned_pointer: Pointer "optargs_s.username" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def627] libguestfs-1.22.0/lua/lua-guestfs.c:5307: returned_pointer: Pointer "optargs_s.ostring" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def628] libguestfs-1.22.0/lua/lua-guestfs.c:7866: returned_pointer: Pointer "optargs_s.level" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def629] libguestfs-1.22.0/lua/lua-guestfs.c:8487: returned_pointer: Pointer "optargs_s.datatype" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def630] libguestfs-1.22.0/lua/lua-guestfs.c:8495: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def631] libguestfs-1.22.0/lua/lua-guestfs.c:8499: returned_pointer: Pointer "optargs_s.metadata" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def632] libguestfs-1.22.0/lua/lua-guestfs.c:11810: returned_pointer: Pointer "optargs_s.compress" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def633] libguestfs-1.22.0/lua/lua-guestfs.c:8121: returned_pointer: Pointer "optargs_s.creatoros" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def634] libguestfs-1.22.0/lua/lua-guestfs.c:8125: returned_pointer: Pointer "optargs_s.fstype" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def635] libguestfs-1.22.0/lua/lua-guestfs.c:8109: returned_pointer: Pointer "optargs_s.journaldevice" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def636] libguestfs-1.22.0/lua/lua-guestfs.c:8113: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def637] libguestfs-1.22.0/lua/lua-guestfs.c:8117: returned_pointer: Pointer "optargs_s.lastmounteddir" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def638] libguestfs-1.22.0/lua/lua-guestfs.c:8129: returned_pointer: Pointer "optargs_s.usagetype" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def639] libguestfs-1.22.0/lua/lua-guestfs.c:8133: returned_pointer: Pointer "optargs_s.uuid" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def640] libguestfs-1.22.0/lua/lua-guestfs.c:11973: returned_pointer: Pointer "optargs_s.errorbehavior" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def641] libguestfs-1.22.0/lua/lua-guestfs.c:11989: returned_pointer: Pointer "optargs_s.lastmounteddirectory" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def642] libguestfs-1.22.0/lua/lua-guestfs.c:13064: returned_pointer: Pointer "optargs_s.logdev" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def643] libguestfs-1.22.0/lua/lua-guestfs.c:13068: returned_pointer: Pointer "optargs_s.rtdev" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def644] libguestfs-1.22.0/lua/lua-guestfs.c:11696: returned_pointer: Pointer "optargs_s.directory" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def645] libguestfs-1.22.0/lua/lua-guestfs.c:11777: returned_pointer: Pointer "optargs_s.compress" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def646] libguestfs-1.22.0/lua/lua-guestfs.c:12915: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def647] libguestfs-1.22.0/lua/lua-guestfs.c:12919: returned_pointer: Pointer "optargs_s.uuid" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def648] libguestfs-1.22.0/lua/lua-guestfs.c:8764: returned_pointer: Pointer "optargs_s.suffix" returned by "luaL_checklstring(L, -1, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): [#def649] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22704: returned_pointer: Pointer "optargs_s.logdev" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def650] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22709: returned_pointer: Pointer "optargs_s.rtdev" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def651] libguestfs-1.22.0/python/guestfs-py.c:3799: returned_pointer: Pointer "optargs_s.format" returned by "PyString_AsString(py_format)" is never used. Error: UNUSED_VALUE (CWE-563): [#def652] libguestfs-1.22.0/python/guestfs-py.c:3809: returned_pointer: Pointer "optargs_s.iface" returned by "PyString_AsString(py_iface)" is never used. Error: UNUSED_VALUE (CWE-563): [#def653] libguestfs-1.22.0/python/guestfs-py.c:3829: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used. Error: UNUSED_VALUE (CWE-563): [#def654] libguestfs-1.22.0/python/guestfs-py.c:3819: returned_pointer: Pointer "optargs_s.name" returned by "PyString_AsString(py_name)" is never used. Error: UNUSED_VALUE (CWE-563): [#def655] libguestfs-1.22.0/python/guestfs-py.c:3839: returned_pointer: Pointer "optargs_s.protocol" returned by "PyString_AsString(py_protocol)" is never used. Error: UNUSED_VALUE (CWE-563): [#def656] libguestfs-1.22.0/python/guestfs-py.c:3864: returned_pointer: Pointer "optargs_s.secret" returned by "PyString_AsString(py_secret)" is never used. Error: UNUSED_VALUE (CWE-563): [#def657] libguestfs-1.22.0/python/guestfs-py.c:3854: returned_pointer: Pointer "optargs_s.username" returned by "PyString_AsString(py_username)" is never used. Error: UNUSED_VALUE (CWE-563): [#def658] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:23104: returned_pointer: Pointer "optargs_s.suffix" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def659] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:9641: returned_pointer: Pointer "optargs_s.compress" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def660] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:12128: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def661] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:12133: returned_pointer: Pointer "optargs_s.uuid" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def662] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:18488: returned_pointer: Pointer "optargs_s.options" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def663] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:4041: returned_pointer: Pointer "optargs_s.iface" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def664] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:4031: returned_pointer: Pointer "optargs_s.libvirturi" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def665] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:4056: returned_pointer: Pointer "optargs_s.readonlydisk" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def666] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:21968: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def667] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:21973: returned_pointer: Pointer "optargs_s.uuid" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def668] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:5290: returned_pointer: Pointer "optargs_s.options" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def669] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:9713: returned_pointer: Pointer "optargs_s.compress" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def670] libguestfs-1.22.0/python/guestfs-py.c:16711: returned_pointer: Pointer "optargs_s.errorbehavior" returned by "PyString_AsString(py_errorbehavior)" is never used. Error: UNUSED_VALUE (CWE-563): [#def671] libguestfs-1.22.0/python/guestfs-py.c:16736: returned_pointer: Pointer "optargs_s.lastmounteddirectory" returned by "PyString_AsString(py_lastmounteddirectory)" is never used. Error: UNUSED_VALUE (CWE-563): [#def672] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22886: returned_pointer: Pointer "optargs_s.creatoros" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def673] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22891: returned_pointer: Pointer "optargs_s.fstype" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def674] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22871: returned_pointer: Pointer "optargs_s.journaldevice" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def675] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22876: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def676] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22881: returned_pointer: Pointer "optargs_s.lastmounteddir" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def677] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22896: returned_pointer: Pointer "optargs_s.usagetype" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def678] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:22901: returned_pointer: Pointer "optargs_s.uuid" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def679] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3739: returned_pointer: Pointer "optargs_s.format" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def680] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3744: returned_pointer: Pointer "optargs_s.iface" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def681] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3754: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def682] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3749: returned_pointer: Pointer "optargs_s.name" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def683] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3759: returned_pointer: Pointer "optargs_s.protocol" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def684] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3787: returned_pointer: Pointer "optargs_s.secret" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def685] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:3782: returned_pointer: Pointer "optargs_s.username" returned by "rb_string_value_cstr(&v)" is never used. Error: UNUSED_VALUE (CWE-563): [#def686] libguestfs-1.22.0/ruby/ext/guestfs/_guestfs.c:24091: returned_pointer: Pointer "optargs_s.directory" returned by "rb_string_value_cstr(&v)" is never used. Error: USE_AFTER_FREE (CWE-825): [#def687] libguestfs-1.22.0/src/inspect-fs.c:568: freed_arg: "guestfs___free_string_list(char **)" frees "lines". libguestfs-1.22.0/src/utils.c:43:3: freed_arg: "free(void *)" frees parameter "argv". libguestfs-1.22.0/src/inspect-fs.c:570: double_free: Calling "guestfs___cleanup_free(void *)" frees pointer "lines" which has already been freed. libguestfs-1.22.0/src/cleanup.c:42:3: freed_arg: "free(void *)" frees parameter "*((void **)ptr)". Error: USE_AFTER_FREE (CWE-825): [#def688] libguestfs-1.22.0/lua/lua-guestfs.c:177: freed_arg: "guestfs_close(guestfs_h *)" frees "g". libguestfs-1.22.0/src/handle.c:356:3: freed_arg: "free(void *)" frees parameter "g". libguestfs-1.22.0/lua/lua-guestfs.c:183: pass_freed_arg: Passing freed pointer "g" as an argument to function "free_per_handle_table(lua_State *, guestfs_h *)".