libguestfs-1.25.49-1.fc21

warning: low parsing ratio: 76%

List of Defects

Error: ARRAY_VS_SINGLETON (CWE-119): [#def1]
libguestfs-1.25.49/builder/index-parse.c:1464: address_of: Taking address with "&yyptr->yyss_alloc" yields a singleton pointer.
libguestfs-1.25.49/builder/index-parse.c:1464: assign: Assigning: "yyss" = "&yyptr->yyss_alloc".
libguestfs-1.25.49/builder/index-parse.c:1474: ptr_arith: Using "yyss" as an array.  This might corrupt or misinterpret adjacent memory locations.

Error: ARRAY_VS_SINGLETON (CWE-119): [#def2]
libguestfs-1.25.49/builder/index-parse.c:1465: address_of: Taking address with "&yyptr->yyvs_alloc" yields a singleton pointer.
libguestfs-1.25.49/builder/index-parse.c:1465: assign: Assigning: "yyvs" = "&yyptr->yyvs_alloc".
libguestfs-1.25.49/builder/index-parse.c:1475: ptr_arith: Using "yyvs" as an array.  This might corrupt or misinterpret adjacent memory locations.

Error: RESOURCE_LEAK (CWE-772): [#def3]
libguestfs-1.25.49/builder/index-parse.c:1460: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/builder/index-parse.c:1460: var_assign: Assigning: "yyptr" = storage returned from "malloc(yystacksize * 26UL + 30UL)".
libguestfs-1.25.49/builder/index-parse.c:1466: noescape: Resource "&yyptr->yyls_alloc" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)".
libguestfs-1.25.49/builder/index-parse.c:1466: var_assign: Assigning: "yyls" = "yyptr".
libguestfs-1.25.49/builder/index-parse.c:1470: leaked_storage: Variable "yyptr" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1476: var_assign: Assigning: "yylsp" = "yyls".
libguestfs-1.25.49/builder/index-parse.c:1466: noescape: Resource "yyls" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)".
libguestfs-1.25.49/builder/index-parse.c:1476: overwrite_var: Overwriting "yylsp" in "yylsp = yyls + yysize - 1" leaks the storage that "yylsp" points to.

Error: RESOURCE_LEAK (CWE-772): [#def4]
libguestfs-1.25.49/builder/index-parse.c:1460: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/builder/index-parse.c:1460: var_assign: Assigning: "yyptr" = storage returned from "malloc(yystacksize * 26UL + 30UL)".
libguestfs-1.25.49/builder/index-parse.c:1466: noescape: Resource "&yyptr->yyls_alloc" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)".
libguestfs-1.25.49/builder/index-parse.c:1466: var_assign: Assigning: "yyls" = "yyptr".
libguestfs-1.25.49/builder/index-parse.c:1470: leaked_storage: Variable "yyptr" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1476: var_assign: Assigning: "yylsp" = "yyls".
libguestfs-1.25.49/builder/index-parse.c:1900: noescape: Resource "yylsp" is not freed or pointed-to in function "yydestruct(char const *, int, YYSTYPE *, YYLTYPE *, yyscan_t, struct parse_context *)".
libguestfs-1.25.49/builder/index-parse.c:1205:72: noescape: "yydestruct(char const *, int, YYSTYPE *, YYLTYPE *, yyscan_t, struct parse_context *)" does not free or save its pointer parameter "yylocationp".
libguestfs-1.25.49/builder/index-parse.c:1913: leaked_storage: Variable "yylsp" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1913: leaked_storage: Variable "yyls" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772): [#def5]
libguestfs-1.25.49/builder/index-parse.c:1460: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/builder/index-parse.c:1460: var_assign: Assigning: "yyptr" = storage returned from "malloc(yystacksize * 26UL + 30UL)".
libguestfs-1.25.49/builder/index-parse.c:1466: noescape: Resource "&yyptr->yyls_alloc" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)".
libguestfs-1.25.49/builder/index-parse.c:1466: var_assign: Assigning: "yyls" = "yyptr".
libguestfs-1.25.49/builder/index-parse.c:1470: leaked_storage: Variable "yyptr" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1476: var_assign: Assigning: "yylsp" = "yyls".
libguestfs-1.25.49/builder/index-parse.c:1913: leaked_storage: Variable "yylsp" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1913: leaked_storage: Variable "yyls" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772): [#def6]
libguestfs-1.25.49/builder/index-parse.c:1460: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/builder/index-parse.c:1460: var_assign: Assigning: "yyptr" = storage returned from "malloc(yystacksize * 26UL + 30UL)".
libguestfs-1.25.49/builder/index-parse.c:1466: noescape: Resource "&yyptr->yyls_alloc" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)".
libguestfs-1.25.49/builder/index-parse.c:1466: var_assign: Assigning: "yyls" = "yyptr".
libguestfs-1.25.49/builder/index-parse.c:1470: leaked_storage: Variable "yyptr" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1476: var_assign: Assigning: "yylsp" = "yyls".
libguestfs-1.25.49/builder/index-parse.c:1837: noescape: Resource "yylsp" is not freed or pointed-to in function "yydestruct(char const *, int, YYSTYPE *, YYLTYPE *, yyscan_t, struct parse_context *)".
libguestfs-1.25.49/builder/index-parse.c:1205:72: noescape: "yydestruct(char const *, int, YYSTYPE *, YYLTYPE *, yyscan_t, struct parse_context *)" does not free or save its pointer parameter "yylocationp".
libguestfs-1.25.49/builder/index-parse.c:1900: noescape: Resource "yylsp" is not freed or pointed-to in function "yydestruct(char const *, int, YYSTYPE *, YYLTYPE *, yyscan_t, struct parse_context *)".
libguestfs-1.25.49/builder/index-parse.c:1205:72: noescape: "yydestruct(char const *, int, YYSTYPE *, YYLTYPE *, yyscan_t, struct parse_context *)" does not free or save its pointer parameter "yylocationp".
libguestfs-1.25.49/builder/index-parse.c:1913: leaked_storage: Variable "yylsp" going out of scope leaks the storage it points to.
libguestfs-1.25.49/builder/index-parse.c:1913: leaked_storage: Variable "yyls" going out of scope leaks the storage it points to.

Error: FORWARD_NULL (CWE-476): [#def7]
libguestfs-1.25.49/builder/index-scan.c:812: var_compare_op: Comparing "yyg->yy_buffer_stack" to null implies that "yyg->yy_buffer_stack" might be null.
libguestfs-1.25.49/builder/index-scan.c:814: var_deref_op: Dereferencing null pointer "yyg->yy_buffer_stack".

Error: FORWARD_NULL (CWE-476): [#def8]
libguestfs-1.25.49/builder/index-scan.c:1415: var_compare_op: Comparing "yyg->yy_buffer_stack" to null implies that "yyg->yy_buffer_stack" might be null.
libguestfs-1.25.49/builder/index-scan.c:1417: var_deref_op: Dereferencing null pointer "yyg->yy_buffer_stack".

Error: FORWARD_NULL (CWE-476): [#def9]
libguestfs-1.25.49/builder/index-scan.c:1442: var_compare_op: Comparing "yyg->yy_buffer_stack" to null implies that "yyg->yy_buffer_stack" might be null.
libguestfs-1.25.49/builder/index-scan.c:1450: var_deref_op: Dereferencing null pointer "yyg->yy_buffer_stack".

Error: FORWARD_NULL (CWE-476): [#def10]
libguestfs-1.25.49/builder/index-scan.c:1601: var_compare_op: Comparing "yyg->yy_buffer_stack" to null implies that "yyg->yy_buffer_stack" might be null.
libguestfs-1.25.49/builder/index-scan.c:1603: var_deref_op: Dereferencing null pointer "yyg->yy_buffer_stack".

Error: REVERSE_INULL (CWE-476): [#def11]
libguestfs-1.25.49/builder/index-scan.c:1621: deref_ptr: Directly dereferencing pointer "yyg->yy_buffer_stack".
libguestfs-1.25.49/builder/index-scan.c:1625: check_after_deref: Null-checking "yyg->yy_buffer_stack" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

Error: CHECKED_RETURN (CWE-252): [#def12]
libguestfs-1.25.49/builder/pxzcat-c.c:194: check_return: Calling function "posix_fadvise(fd, 0L, 0L, 5)" without checking return value. This library function may fail and return an error code.
libguestfs-1.25.49/builder/pxzcat-c.c:194: unchecked_value: No check of the return value of "posix_fadvise(fd, 0L, 0L, 5)".

Error: RESOURCE_LEAK (CWE-772): [#def13]
libguestfs-1.25.49/daemon/checksum.c:106: open_fn: Returning handle opened by function "open(char const *, int, ...)".
libguestfs-1.25.49/daemon/checksum.c:106: var_assign: Assigning: "fd" = handle returned from "open(path, 524288)".
libguestfs-1.25.49/daemon/checksum.c:114: leaked_handle: Handle variable "fd" going out of scope leaks the handle.

Error: RESOURCE_LEAK (CWE-772): [#def14]
libguestfs-1.25.49/daemon/checksum.c:122: open_fn: Returning handle opened by function "open(char const *, int, ...)".
libguestfs-1.25.49/daemon/checksum.c:122: var_assign: Assigning: "fd" = handle returned from "open(device, 524288)".
libguestfs-1.25.49/daemon/checksum.c:128: leaked_handle: Handle variable "fd" going out of scope leaks the handle.

Error: CHECKED_RETURN (CWE-252): [#def15]
libguestfs-1.25.49/daemon/guestfsd.c:332: 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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/guestfsd.c:332: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)".

Error: RESOURCE_LEAK (CWE-772): [#def16]
libguestfs-1.25.49/daemon/guestfsd.c:901: open_fn: Returning handle opened by function "open(char const *, int, ...)".
libguestfs-1.25.49/daemon/guestfsd.c:901: var_assign: Assigning: "__x" = handle returned from "open("/dev/null", 524288)".
libguestfs-1.25.49/daemon/guestfsd.c:901: leaked_handle: Handle variable "__x" going out of scope leaks the handle.

Error: UNINIT (CWE-457): [#def17]
libguestfs-1.25.49/daemon/ldm.c:57: var_decl: Declaring variable "devs" without initializer.
libguestfs-1.25.49/daemon/ldm.c:61: 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.25.49/gnulib/lib/glob.c:556:3: read_parm_fld: Reading a parameter field.

Error: CHECKED_RETURN (CWE-252): [#def18]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:95: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)".

Error: CHECKED_RETURN (CWE-252): [#def19]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:294: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)".

Error: CHECKED_RETURN (CWE-252): [#def20]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:347: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)".

Error: CHECKED_RETURN (CWE-252): [#def21]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:381: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)".

Error: CHECKED_RETURN (CWE-252): [#def22]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:461: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &flag)".

Error: CHECKED_RETURN (CWE-252): [#def23]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:578: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &len)".

Error: CHECKED_RETURN (CWE-252): [#def24]
libguestfs-1.25.49/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.25.49/daemon/guestfs_protocol.c:8167: example_checked: Example 1: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/daemon/guestfs_protocol.c:8205: example_checked: Example 2: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8205: example_checked: Example 3: "xdr_u_int(xdrs, &objp->serial)" has its value checked in "xdr_u_int(xdrs, &objp->serial)".
libguestfs-1.25.49/src/guestfs_protocol.c:8167: example_checked: Example 4: "xdr_u_int(xdrs, &objp->prog)" has its value checked in "xdr_u_int(xdrs, &objp->prog)".
libguestfs-1.25.49/src/guestfs_protocol.c:722: example_checked: Example 5: "xdr_u_int(xdrs, &objp->xfs_inodesize)" has its value checked in "xdr_u_int(xdrs, &objp->xfs_inodesize)".
libguestfs-1.25.49/daemon/proto.c:647: unchecked_value: No check of the return value of "xdr_u_int(&xdr, &i)".

Error: RESOURCE_LEAK (CWE-772): [#def25]
libguestfs-1.25.49/diff/diff.c:472: alloc_fn: Storage is returned from allocation function "guestfs_copy_stat(struct guestfs_stat const *)".
libguestfs-1.25.49/src/structs-copy.c:415:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/src/structs-copy.c:415:3: var_assign: Assigning: "ret" = "malloc(104UL)".
libguestfs-1.25.49/src/structs-copy.c:419:3: noescape: Resource "ret" is not freed or pointed-to in function "copy_stat(struct guestfs_stat const *, struct guestfs_stat *)".
libguestfs-1.25.49/src/structs-copy.c:405:65: noescape: "copy_stat(struct guestfs_stat const *, struct guestfs_stat *)" does not free or save its pointer parameter "out".
libguestfs-1.25.49/src/structs-copy.c:421:3: return_alloc: Returning allocated memory "ret".
libguestfs-1.25.49/diff/diff.c:472: var_assign: Assigning: "stat" = storage returned from "guestfs_copy_stat(stat_orig)".
libguestfs-1.25.49/diff/diff.c:480: leaked_storage: Variable "stat" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772): [#def26]
libguestfs-1.25.49/diff/diff.c:472: alloc_fn: Storage is returned from allocation function "guestfs_copy_stat(struct guestfs_stat const *)".
libguestfs-1.25.49/src/structs-copy.c:415:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/src/structs-copy.c:415:3: var_assign: Assigning: "ret" = "malloc(104UL)".
libguestfs-1.25.49/src/structs-copy.c:419:3: noescape: Resource "ret" is not freed or pointed-to in function "copy_stat(struct guestfs_stat const *, struct guestfs_stat *)".
libguestfs-1.25.49/src/structs-copy.c:405:65: noescape: "copy_stat(struct guestfs_stat const *, struct guestfs_stat *)" does not free or save its pointer parameter "out".
libguestfs-1.25.49/src/structs-copy.c:421:3: return_alloc: Returning allocated memory "ret".
libguestfs-1.25.49/diff/diff.c:472: var_assign: Assigning: "stat" = storage returned from "guestfs_copy_stat(stat_orig)".
libguestfs-1.25.49/diff/diff.c:486: leaked_storage: Variable "stat" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772): [#def27]
libguestfs-1.25.49/diff/diff.c:477: alloc_fn: Storage is returned from allocation function "guestfs_copy_xattr_list(struct guestfs_xattr_list const *)".
libguestfs-1.25.49/src/structs-copy.c:728:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/src/structs-copy.c:728:3: var_assign: Assigning: "ret" = "malloc(16UL)".
libguestfs-1.25.49/src/structs-copy.c:742:3: return_alloc: Returning allocated memory "ret".
libguestfs-1.25.49/diff/diff.c:477: var_assign: Assigning: "xattrs" = storage returned from "guestfs_copy_xattr_list(xattrs_orig)".
libguestfs-1.25.49/diff/diff.c:486: leaked_storage: Variable "xattrs" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772): [#def28]
libguestfs-1.25.49/diff/diff.c:472: alloc_fn: Storage is returned from allocation function "guestfs_copy_stat(struct guestfs_stat const *)".
libguestfs-1.25.49/src/structs-copy.c:415:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/src/structs-copy.c:415:3: var_assign: Assigning: "ret" = "malloc(104UL)".
libguestfs-1.25.49/src/structs-copy.c:419:3: noescape: Resource "ret" is not freed or pointed-to in function "copy_stat(struct guestfs_stat const *, struct guestfs_stat *)".
libguestfs-1.25.49/src/structs-copy.c:405:65: noescape: "copy_stat(struct guestfs_stat const *, struct guestfs_stat *)" does not free or save its pointer parameter "out".
libguestfs-1.25.49/src/structs-copy.c:421:3: return_alloc: Returning allocated memory "ret".
libguestfs-1.25.49/diff/diff.c:472: var_assign: Assigning: "stat" = storage returned from "guestfs_copy_stat(stat_orig)".
libguestfs-1.25.49/diff/diff.c:524: leaked_storage: Variable "stat" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772): [#def29]
libguestfs-1.25.49/diff/diff.c:477: alloc_fn: Storage is returned from allocation function "guestfs_copy_xattr_list(struct guestfs_xattr_list const *)".
libguestfs-1.25.49/src/structs-copy.c:728:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)".
libguestfs-1.25.49/src/structs-copy.c:728:3: var_assign: Assigning: "ret" = "malloc(16UL)".
libguestfs-1.25.49/src/structs-copy.c:742:3: return_alloc: Returning allocated memory "ret".
libguestfs-1.25.49/diff/diff.c:477: var_assign: Assigning: "xattrs" = storage returned from "guestfs_copy_xattr_list(xattrs_orig)".
libguestfs-1.25.49/diff/diff.c:524: leaked_storage: Variable "xattrs" going out of scope leaks the storage it points to.

Error: NULL_RETURNS (CWE-476): [#def30]
libguestfs-1.25.49/examples/libvirt-auth.c:84: returned_null: Function "guestfs_list_filesystems(guestfs_h *)" returns null (checked 14 out of 15 times).
libguestfs-1.25.49/src/actions-3.c:420:3: var_tested_null: "r" is null.
libguestfs-1.25.49/src/actions-3.c:443:3: return_null_var: Returning "r", which is null.
libguestfs-1.25.49/cat/filesystems.c:431: example_assign: Example 1: Assigning: "fses" = return value from "guestfs_list_filesystems(g)".
libguestfs-1.25.49/cat/filesystems.c:432: example_checked: Example 1 (cont.): "fses" has its value checked in "fses == NULL".
libguestfs-1.25.49/df/df.c:52: example_assign: Example 2: Assigning: "fses" = return value from "guestfs_list_filesystems(g)".
libguestfs-1.25.49/df/df.c:53: example_checked: Example 2 (cont.): "fses" has its value checked in "fses == NULL".
libguestfs-1.25.49/erlang/erl-guestfs.c:5665: example_assign: Example 3: Assigning: "r" = return value from "guestfs_list_filesystems(g)".
libguestfs-1.25.49/erlang/erl-guestfs.c:5666: example_checked: Example 3 (cont.): "r" has its value checked in "r == NULL".
libguestfs-1.25.49/fish/cmds.c:13420: example_assign: Example 4: Assigning: "r" = return value from "guestfs_list_filesystems(g)".
libguestfs-1.25.49/fish/cmds.c:13421: example_checked: Example 4 (cont.): "r" has its value checked in "r == NULL".
libguestfs-1.25.49/fish/options.c:249: example_assign: Example 5: Assigning: "fses" = return value from "guestfs_list_filesystems(g)".
libguestfs-1.25.49/fish/options.c:252: example_checked: Example 5 (cont.): "fses" has its value checked in "fses == NULL".
libguestfs-1.25.49/examples/libvirt-auth.c:84: var_assigned: Assigning: "filesystems" = null return value from "guestfs_list_filesystems(guestfs_h *)".
libguestfs-1.25.49/examples/libvirt-auth.c:86: dereference: Dereferencing a null pointer "filesystems".

Error: CHECKED_RETURN (CWE-252): [#def31]
libguestfs-1.25.49/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.25.49/cat/cat.c:380: example_checked: Example 1: "guestfs_mount_ro(g, device, "/")" has its value checked in "guestfs_mount_ro(g, device, "/") == -1".
libguestfs-1.25.49/df/df.c:71: example_checked: Example 2: "guestfs_mount_ro(g, dev, "/")" has its value checked in "guestfs_mount_ro(g, dev, "/") == 0".
libguestfs-1.25.49/erlang/erl-guestfs.c:7196: example_assign: Example 3: Assigning: "r" = return value from "guestfs_mount_ro(g, mountable, mountpoint)".
libguestfs-1.25.49/erlang/erl-guestfs.c:7197: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:16981: example_assign: Example 4: Assigning: "r" = return value from "guestfs_mount_ro(g, mountable, mountpoint)".
libguestfs-1.25.49/fish/cmds.c:16982: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/inspect.c:146: example_assign: Example 5: Assigning: "r" = return value from "guestfs_mount_ro(g, mountpoints[i + 1UL], mountpoints[i])".
libguestfs-1.25.49/fish/inspect.c:147: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/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): [#def32]
libguestfs-1.25.49/fish/fish.c:436: 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.25.49/erlang/erl-guestfs.c:8599: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8600: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:20066: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/fish/cmds.c:20067: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11854: example_assign: Example 3: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11857: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11520: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/lua/lua-guestfs.c:11521: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16135: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16136: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/fish.c:436: unchecked_value: No check of the return value of "guestfs_set_pgroup(g, 1)".

Error: CHECKED_RETURN (CWE-252): [#def33]
libguestfs-1.25.49/fish/fish.c:492: 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.25.49/erlang/erl-guestfs.c:8642: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8643: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:20147: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)".
libguestfs-1.25.49/fish/cmds.c:20148: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fuse/guestmount.c:363: example_checked: Example 3: "guestfs_set_recovery_proc(g, !do_fork)" has its value checked in "guestfs_set_recovery_proc(g, !do_fork) == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11911: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11914: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11583: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_recovery_proc(g, recoveryproc)".
libguestfs-1.25.49/lua/lua-guestfs.c:11584: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/fish.c:492: unchecked_value: No check of the return value of "guestfs_set_recovery_proc(g, 0)".

Error: CHECKED_RETURN (CWE-252): [#def34]
libguestfs-1.25.49/fish/fish.c:600: check_return: Calling function "guestfs_user_cancel(guestfs_h *)" without checking return value (as is done elsewhere 9 out of 10 times).
libguestfs-1.25.49/erlang/erl-guestfs.c:9552: example_assign: Example 1: Assigning: "r" = return value from "guestfs_user_cancel(g)".
libguestfs-1.25.49/erlang/erl-guestfs.c:9553: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:22192: example_assign: Example 2: Assigning: "r" = return value from "guestfs_user_cancel(g)".
libguestfs-1.25.49/fish/cmds.c:22193: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:13207: example_assign: Example 3: Assigning: "r" = return value from "guestfs_user_cancel(g)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:13210: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:12853: example_assign: Example 4: Assigning: "r" = return value from "guestfs_user_cancel(g)".
libguestfs-1.25.49/lua/lua-guestfs.c:12854: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:18012: example_assign: Example 5: Assigning: "r" = return value from "guestfs_user_cancel(g)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:18013: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/fish.c:600: unchecked_value: No check of the return value of "guestfs_user_cancel(g)".

Error: SIZEOF_MISMATCH (CWE-398): [#def35]
libguestfs-1.25.49/fish/rc.c:172: suspicious_sizeof: Passing argument "20" to function malloc(size_t) that returns a pointer of type "struct cmsghdr *" is suspicious because a multiple of sizeof(struct cmsghdr) /*16*/ is expected.

Error: CHECKED_RETURN (CWE-252): [#def36]
libguestfs-1.25.49/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.25.49/erlang/erl-guestfs.c:8586: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8587: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:20037: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/fish/cmds.c:20038: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11834: example_assign: Example 3: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11839: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11499: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/lua/lua-guestfs.c:11500: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16106: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16108: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/reopen.c:76: unchecked_value: No check of the return value of "guestfs_set_path(g2, p)".

Error: CHECKED_RETURN (CWE-252): [#def37]
libguestfs-1.25.49/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.25.49/erlang/erl-guestfs.c:8599: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8600: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:20066: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/fish/cmds.c:20067: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11854: example_assign: Example 3: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11857: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11520: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/lua/lua-guestfs.c:11521: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16135: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_pgroup(g, pgroup)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16136: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/reopen.c:80: unchecked_value: No check of the return value of "guestfs_set_pgroup(g2, r)".

Error: FORWARD_NULL (CWE-476): [#def38]
libguestfs-1.25.49/format/format.c:162: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null.
libguestfs-1.25.49/format/format.c:147: var_deref_model: Passing null pointer "optarg" to function "__coverity_strcmp(char const *, char const *)", which dereferences it.

Error: FORWARD_NULL (CWE-476): [#def39]
libguestfs-1.25.49/format/format.c:162: var_compare_op: Comparing "optarg" to null implies that "optarg" might be null.
libguestfs-1.25.49/format/format.c:190: var_deref_model: Passing null pointer "optarg" to function "option_a(char const *, char const *, struct drv **)", which dereferences it.
libguestfs-1.25.49/fish/options.c:45:3: deref_parm_in_call: Function "parse_uri(char const *, struct uri *)" dereferences "arg".
libguestfs-1.25.49/fish/uri.c:50:3: deref_parm_in_call: Function "is_uri(char const *)" dereferences "arg".
libguestfs-1.25.49/fish/uri.c:85:3: deref_parm_in_call: Function "strstr(char const *, char const *)" dereferences "arg".

Error: OVERRUN (CWE-119): [#def40]
libguestfs-1.25.49/gnulib/lib/glob.c:445: strlen_assign: Setting variable "dirlen" to the return value of strlen called with argument "pattern".
libguestfs-1.25.49/gnulib/lib/glob.c:664: strlen_assign: Setting variable "home_len" to the return value of strlen called with argument "home_dir".
libguestfs-1.25.49/gnulib/lib/glob.c:665: alloc_strlen: Allocating insufficient memory for the terminating null of the string.

Error: NULL_RETURNS (CWE-476): [#def41]
libguestfs-1.25.49/gnulib/lib/glob.c:998: returned_null: Function "__coverity_strchr(char const *, int)" returns null (checked 50 out of 51 times).
libguestfs-1.25.49/builder/index-validate.c:140: example_checked: Example 1: "__coverity_strchr(sections->name, 95)" has its value checked in "__coverity_strchr(sections->name, 95)".
libguestfs-1.25.49/cat/cat.c:181: example_checked: Example 2: "__coverity_strchr(argv[optind], 47)" has its value checked in "__coverity_strchr(argv[optind], 47)".
libguestfs-1.25.49/cat/ls.c:280: example_checked: Example 3: "__coverity_strchr(argv[optind], 47)" has its value checked in "__coverity_strchr(argv[optind], 47)".
libguestfs-1.25.49/daemon/blkid.c:168: example_assign: Example 4: Assigning: "eq" = return value from "__coverity_strchr(line, 61)".
libguestfs-1.25.49/daemon/blkid.c:169: example_checked: Example 4 (cont.): "eq" has its value checked in "eq".
libguestfs-1.25.49/daemon/guestfsd.c:1089: example_assign: Example 5: Assigning: "pend" = return value from "__coverity_strchr(p, 10)".
libguestfs-1.25.49/daemon/guestfsd.c:1090: example_checked: Example 5 (cont.): "pend" has its value checked in "pend".
libguestfs-1.25.49/gnulib/lib/glob.c:998: var_assigned: Assigning: "p" = null return value from "__coverity_strchr(char const *, int)".
libguestfs-1.25.49/gnulib/lib/glob.c:1002: alias: Assigning: "q" = "p".  Both pointers are now null.
libguestfs-1.25.49/gnulib/lib/glob.c:1005: dereference: Dereferencing a null pointer "p".

Error: CONSTANT_EXPRESSION_RESULT (CWE-398): [#def42]
libguestfs-1.25.49/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): [#def43]
libguestfs-1.25.49/gnulib/lib/strerror_r.c:152: assignment: Assigning: "msg" = "NULL".
libguestfs-1.25.49/gnulib/lib/strerror_r.c:154: null: At condition "msg", the value of "msg" must be NULL.
libguestfs-1.25.49/gnulib/lib/strerror_r.c:154: dead_error_condition: The condition "msg" cannot be true.
libguestfs-1.25.49/gnulib/lib/strerror_r.c:155: dead_error_line: Execution cannot reach this statement "return safe_copy(buf, bufle...".

Error: FORWARD_NULL (CWE-476): [#def44]
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL".
libguestfs-1.25.49/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): [#def45]
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL".
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:1905: var_deref_op: Dereferencing null pointer "result".

Error: FORWARD_NULL (CWE-476): [#def46]
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL".
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:4937: var_deref_op: Dereferencing null pointer "result".

Error: FORWARD_NULL (CWE-476): [#def47]
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL".
libguestfs-1.25.49/gnulib/lib/vasnprintf.c:5549: var_deref_op: Dereferencing null pointer "result".

Error: COMPILER_WARNING: [#def48]
libguestfs-1.25.49/gobject/src/session.c:833:22: warning: "/*" within comment [-Wcomment]
#  * "/dev/disk/guestfs/*label*".
# ^

Error: COMPILER_WARNING: [#def49]
libguestfs-1.25.49/gobject/src/session.c:1638:73: warning: "/*" within comment [-Wcomment]
#  * This is just a shortcut for listing guestfs_session_aug_match() "path/*"
# ^

Error: COMPILER_WARNING: [#def50]
libguestfs-1.25.49/gobject/src/session.c:13567:43: warning: "/*" within comment [-Wcomment]
#  * The returned list contains "/dev/mapper/*" devices, eg. ones created by
# ^

Error: COMPILER_WARNING: [#def51]
libguestfs-1.25.49/gobject/src/session.c:20006:34: warning: "/*" within comment [-Wcomment]
#  * <![CDATA[><fs> glob rsync-out /* rsync://remote/]]>
# ^

Error: USE_AFTER_FREE (CWE-825): [#def52]
libguestfs-1.25.49/lua/lua-guestfs.c:179: freed_arg: "guestfs_close(guestfs_h *)" frees "g".
libguestfs-1.25.49/src/handle.c:375:3: freed_arg: "free(void *)" frees parameter "g".
libguestfs-1.25.49/lua/lua-guestfs.c:185: pass_freed_arg: Passing freed pointer "g" as an argument to function "free_per_handle_table(lua_State *, guestfs_h *)".

Error: UNUSED_VALUE (CWE-563): [#def53]
libguestfs-1.25.49/lua/lua-guestfs.c:539: returned_pointer: Pointer "optargs_s.libvirturi" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def54]
libguestfs-1.25.49/lua/lua-guestfs.c:547: returned_pointer: Pointer "optargs_s.iface" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def55]
libguestfs-1.25.49/lua/lua-guestfs.c:559: returned_pointer: Pointer "optargs_s.readonlydisk" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def56]
libguestfs-1.25.49/lua/lua-guestfs.c:563: returned_pointer: Pointer "optargs_s.cachemode" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def57]
libguestfs-1.25.49/lua/lua-guestfs.c:567: returned_pointer: Pointer "optargs_s.discard" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def58]
libguestfs-1.25.49/lua/lua-guestfs.c:603: returned_pointer: Pointer "optargs_s.format" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def59]
libguestfs-1.25.49/lua/lua-guestfs.c:607: returned_pointer: Pointer "optargs_s.iface" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def60]
libguestfs-1.25.49/lua/lua-guestfs.c:611: returned_pointer: Pointer "optargs_s.name" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def61]
libguestfs-1.25.49/lua/lua-guestfs.c:615: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def62]
libguestfs-1.25.49/lua/lua-guestfs.c:619: returned_pointer: Pointer "optargs_s.protocol" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def63]
libguestfs-1.25.49/lua/lua-guestfs.c:627: returned_pointer: Pointer "optargs_s.username" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def64]
libguestfs-1.25.49/lua/lua-guestfs.c:631: returned_pointer: Pointer "optargs_s.secret" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def65]
libguestfs-1.25.49/lua/lua-guestfs.c:635: returned_pointer: Pointer "optargs_s.cachemode" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def66]
libguestfs-1.25.49/lua/lua-guestfs.c:639: returned_pointer: Pointer "optargs_s.discard" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def67]
libguestfs-1.25.49/lua/lua-guestfs.c:715: returned_pointer: Pointer "optargs_s.name" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def68]
libguestfs-1.25.49/lua/lua-guestfs.c:719: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def69]
libguestfs-1.25.49/lua/lua-guestfs.c:2659: returned_pointer: Pointer "optargs_s.backingfile" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def70]
libguestfs-1.25.49/lua/lua-guestfs.c:2663: returned_pointer: Pointer "optargs_s.backingformat" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def71]
libguestfs-1.25.49/lua/lua-guestfs.c:2667: returned_pointer: Pointer "optargs_s.preallocation" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def72]
libguestfs-1.25.49/lua/lua-guestfs.c:2671: returned_pointer: Pointer "optargs_s.compat" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def73]
libguestfs-1.25.49/lua/lua-guestfs.c:5590: returned_pointer: Pointer "optargs_s.ostring" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def74]
libguestfs-1.25.49/lua/lua-guestfs.c:8353: returned_pointer: Pointer "optargs_s.level" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def75]
libguestfs-1.25.49/lua/lua-guestfs.c:8596: returned_pointer: Pointer "optargs_s.journaldevice" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def76]
libguestfs-1.25.49/lua/lua-guestfs.c:8600: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def77]
libguestfs-1.25.49/lua/lua-guestfs.c:8604: returned_pointer: Pointer "optargs_s.lastmounteddir" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def78]
libguestfs-1.25.49/lua/lua-guestfs.c:8608: returned_pointer: Pointer "optargs_s.creatoros" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def79]
libguestfs-1.25.49/lua/lua-guestfs.c:8612: returned_pointer: Pointer "optargs_s.fstype" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def80]
libguestfs-1.25.49/lua/lua-guestfs.c:8616: returned_pointer: Pointer "optargs_s.usagetype" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def81]
libguestfs-1.25.49/lua/lua-guestfs.c:8620: returned_pointer: Pointer "optargs_s.uuid" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def82]
libguestfs-1.25.49/lua/lua-guestfs.c:8902: returned_pointer: Pointer "optargs_s.features" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def83]
libguestfs-1.25.49/lua/lua-guestfs.c:8974: returned_pointer: Pointer "optargs_s.datatype" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def84]
libguestfs-1.25.49/lua/lua-guestfs.c:8982: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def85]
libguestfs-1.25.49/lua/lua-guestfs.c:8986: returned_pointer: Pointer "optargs_s.metadata" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def86]
libguestfs-1.25.49/lua/lua-guestfs.c:9149: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def87]
libguestfs-1.25.49/lua/lua-guestfs.c:9153: returned_pointer: Pointer "optargs_s.uuid" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def88]
libguestfs-1.25.49/lua/lua-guestfs.c:9251: returned_pointer: Pointer "optargs_s.suffix" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def89]
libguestfs-1.25.49/lua/lua-guestfs.c:9330: returned_pointer: Pointer "optargs_s.options" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def90]
libguestfs-1.25.49/lua/lua-guestfs.c:9365: returned_pointer: Pointer "optargs_s.options" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def91]
libguestfs-1.25.49/lua/lua-guestfs.c:12305: returned_pointer: Pointer "optargs_s.directory" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def92]
libguestfs-1.25.49/lua/lua-guestfs.c:12386: returned_pointer: Pointer "optargs_s.compress" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def93]
libguestfs-1.25.49/lua/lua-guestfs.c:12419: returned_pointer: Pointer "optargs_s.compress" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def94]
libguestfs-1.25.49/lua/lua-guestfs.c:12582: returned_pointer: Pointer "optargs_s.errorbehavior" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def95]
libguestfs-1.25.49/lua/lua-guestfs.c:12598: returned_pointer: Pointer "optargs_s.lastmounteddirectory" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def96]
libguestfs-1.25.49/lua/lua-guestfs.c:13524: returned_pointer: Pointer "optargs_s.label" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def97]
libguestfs-1.25.49/lua/lua-guestfs.c:13528: returned_pointer: Pointer "optargs_s.uuid" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def98]
libguestfs-1.25.49/lua/lua-guestfs.c:13673: returned_pointer: Pointer "optargs_s.logdev" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def99]
libguestfs-1.25.49/lua/lua-guestfs.c:13677: returned_pointer: Pointer "optargs_s.rtdev" returned by "luaL_checklstring(L, -1, NULL)" is never used.

Error: NULL_RETURNS (CWE-476): [#def100]
libguestfs-1.25.49/make-fs/make-fs.c:214: returned_null: Function "guestfs_statvfs(guestfs_h *, char const *)" returns null (checked 11 out of 12 times).
libguestfs-1.25.49/src/actions-3.c:2306:5: return_null: Explicitly returning null.
libguestfs-1.25.49/df/df.c:72: example_assign: Example 1: Assigning: "stat" = return value from "guestfs_statvfs(g, "/")".
libguestfs-1.25.49/df/df.c:78: example_checked: Example 1 (cont.): "stat" has its value checked in "stat".
libguestfs-1.25.49/erlang/erl-guestfs.c:8932: example_assign: Example 2: Assigning: "r" = return value from "guestfs_statvfs(g, path)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8933: example_checked: Example 2 (cont.): "r" has its value checked in "r == NULL".
libguestfs-1.25.49/fish/cmds.c:20901: example_assign: Example 3: Assigning: "r" = return value from "guestfs_statvfs(g, path)".
libguestfs-1.25.49/fish/cmds.c:20902: example_checked: Example 3 (cont.): "r" has its value checked in "r == NULL".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:12409: example_assign: Example 4: Assigning: "r" = return value from "guestfs_statvfs(g, path)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:12413: example_checked: Example 4 (cont.): "r" has its value checked in "r == NULL".
libguestfs-1.25.49/lua/lua-guestfs.c:12043: example_assign: Example 5: Assigning: "r" = return value from "guestfs_statvfs(g, path)".
libguestfs-1.25.49/lua/lua-guestfs.c:12044: example_checked: Example 5 (cont.): "r" has its value checked in "r == NULL".
libguestfs-1.25.49/make-fs/make-fs.c:214: var_assigned: Assigning: "stats" = null return value from "guestfs_statvfs(guestfs_h *, char const *)".
libguestfs-1.25.49/make-fs/make-fs.c:217: dereference: Dereferencing a null pointer "stats".

Error: RESOURCE_LEAK (CWE-772): [#def101]
libguestfs-1.25.49/make-fs/make-fs.c:414: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)".
libguestfs-1.25.49/make-fs/make-fs.c:414: var_assign: Assigning: "fp" = storage returned from "fopen(tmpfile, "r")".
libguestfs-1.25.49/make-fs/make-fs.c:419: noescape: Resource "fp" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)".
libguestfs-1.25.49/make-fs/make-fs.c:421: leaked_storage: Variable "fp" going out of scope leaks the storage it points to.

Error: UNUSED_VALUE (CWE-563): [#def102]
libguestfs-1.25.49/python/guestfs-py.c:1288: returned_pointer: Pointer "optargs_s.libvirturi" returned by "PyString_AsString(py_libvirturi)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def103]
libguestfs-1.25.49/python/guestfs-py.c:1303: returned_pointer: Pointer "optargs_s.iface" returned by "PyString_AsString(py_iface)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def104]
libguestfs-1.25.49/python/guestfs-py.c:1323: returned_pointer: Pointer "optargs_s.readonlydisk" returned by "PyString_AsString(py_readonlydisk)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def105]
libguestfs-1.25.49/python/guestfs-py.c:1333: returned_pointer: Pointer "optargs_s.cachemode" returned by "PyString_AsString(py_cachemode)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def106]
libguestfs-1.25.49/python/guestfs-py.c:1343: returned_pointer: Pointer "optargs_s.discard" returned by "PyString_AsString(py_discard)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def107]
libguestfs-1.25.49/python/guestfs-py.c:1407: returned_pointer: Pointer "optargs_s.format" returned by "PyString_AsString(py_format)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def108]
libguestfs-1.25.49/python/guestfs-py.c:1417: returned_pointer: Pointer "optargs_s.iface" returned by "PyString_AsString(py_iface)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def109]
libguestfs-1.25.49/python/guestfs-py.c:1427: returned_pointer: Pointer "optargs_s.name" returned by "PyString_AsString(py_name)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def110]
libguestfs-1.25.49/python/guestfs-py.c:1437: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def111]
libguestfs-1.25.49/python/guestfs-py.c:1447: returned_pointer: Pointer "optargs_s.protocol" returned by "PyString_AsString(py_protocol)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def112]
libguestfs-1.25.49/python/guestfs-py.c:1462: returned_pointer: Pointer "optargs_s.username" returned by "PyString_AsString(py_username)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def113]
libguestfs-1.25.49/python/guestfs-py.c:1472: returned_pointer: Pointer "optargs_s.secret" returned by "PyString_AsString(py_secret)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def114]
libguestfs-1.25.49/python/guestfs-py.c:1482: returned_pointer: Pointer "optargs_s.cachemode" returned by "PyString_AsString(py_cachemode)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def115]
libguestfs-1.25.49/python/guestfs-py.c:1492: returned_pointer: Pointer "optargs_s.discard" returned by "PyString_AsString(py_discard)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def116]
libguestfs-1.25.49/python/guestfs-py.c:1596: returned_pointer: Pointer "optargs_s.name" returned by "PyString_AsString(py_name)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def117]
libguestfs-1.25.49/python/guestfs-py.c:1606: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def118]
libguestfs-1.25.49/python/guestfs-py.c:4627: returned_pointer: Pointer "optargs_s.backingfile" returned by "PyString_AsString(py_backingfile)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def119]
libguestfs-1.25.49/python/guestfs-py.c:4637: returned_pointer: Pointer "optargs_s.backingformat" returned by "PyString_AsString(py_backingformat)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def120]
libguestfs-1.25.49/python/guestfs-py.c:4647: returned_pointer: Pointer "optargs_s.preallocation" returned by "PyString_AsString(py_preallocation)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def121]
libguestfs-1.25.49/python/guestfs-py.c:4657: returned_pointer: Pointer "optargs_s.compat" returned by "PyString_AsString(py_compat)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def122]
libguestfs-1.25.49/python/guestfs-py.c:9151: returned_pointer: Pointer "optargs_s.ostring" returned by "PyString_AsString(py_ostring)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def123]
libguestfs-1.25.49/python/guestfs-py.c:13308: returned_pointer: Pointer "optargs_s.level" returned by "PyString_AsString(py_level)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def124]
libguestfs-1.25.49/python/guestfs-py.c:13717: returned_pointer: Pointer "optargs_s.journaldevice" returned by "PyString_AsString(py_journaldevice)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def125]
libguestfs-1.25.49/python/guestfs-py.c:13727: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def126]
libguestfs-1.25.49/python/guestfs-py.c:13737: returned_pointer: Pointer "optargs_s.lastmounteddir" returned by "PyString_AsString(py_lastmounteddir)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def127]
libguestfs-1.25.49/python/guestfs-py.c:13747: returned_pointer: Pointer "optargs_s.creatoros" returned by "PyString_AsString(py_creatoros)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def128]
libguestfs-1.25.49/python/guestfs-py.c:13757: returned_pointer: Pointer "optargs_s.fstype" returned by "PyString_AsString(py_fstype)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def129]
libguestfs-1.25.49/python/guestfs-py.c:13767: returned_pointer: Pointer "optargs_s.usagetype" returned by "PyString_AsString(py_usagetype)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def130]
libguestfs-1.25.49/python/guestfs-py.c:13777: returned_pointer: Pointer "optargs_s.uuid" returned by "PyString_AsString(py_uuid)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def131]
libguestfs-1.25.49/python/guestfs-py.c:14182: returned_pointer: Pointer "optargs_s.features" returned by "PyString_AsString(py_features)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def132]
libguestfs-1.25.49/python/guestfs-py.c:14300: returned_pointer: Pointer "optargs_s.datatype" returned by "PyString_AsString(py_datatype)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def133]
libguestfs-1.25.49/python/guestfs-py.c:14315: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def134]
libguestfs-1.25.49/python/guestfs-py.c:14325: returned_pointer: Pointer "optargs_s.metadata" returned by "PyString_AsString(py_metadata)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def135]
libguestfs-1.25.49/python/guestfs-py.c:14572: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def136]
libguestfs-1.25.49/python/guestfs-py.c:14582: returned_pointer: Pointer "optargs_s.uuid" returned by "PyString_AsString(py_uuid)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def137]
libguestfs-1.25.49/python/guestfs-py.c:14740: returned_pointer: Pointer "optargs_s.suffix" returned by "PyString_AsString(py_suffix)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def138]
libguestfs-1.25.49/python/guestfs-py.c:14867: returned_pointer: Pointer "optargs_s.options" returned by "PyString_AsString(py_options)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def139]
libguestfs-1.25.49/python/guestfs-py.c:14926: returned_pointer: Pointer "optargs_s.options" returned by "PyString_AsString(py_options)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def140]
libguestfs-1.25.49/python/guestfs-py.c:19423: returned_pointer: Pointer "optargs_s.directory" returned by "PyString_AsString(py_directory)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def141]
libguestfs-1.25.49/python/guestfs-py.c:19546: returned_pointer: Pointer "optargs_s.compress" returned by "PyString_AsString(py_compress)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def142]
libguestfs-1.25.49/python/guestfs-py.c:19600: returned_pointer: Pointer "optargs_s.compress" returned by "PyString_AsString(py_compress)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def143]
libguestfs-1.25.49/python/guestfs-py.c:19865: returned_pointer: Pointer "optargs_s.errorbehavior" returned by "PyString_AsString(py_errorbehavior)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def144]
libguestfs-1.25.49/python/guestfs-py.c:19890: returned_pointer: Pointer "optargs_s.lastmounteddirectory" returned by "PyString_AsString(py_lastmounteddirectory)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def145]
libguestfs-1.25.49/python/guestfs-py.c:21352: returned_pointer: Pointer "optargs_s.label" returned by "PyString_AsString(py_label)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def146]
libguestfs-1.25.49/python/guestfs-py.c:21362: returned_pointer: Pointer "optargs_s.uuid" returned by "PyString_AsString(py_uuid)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def147]
libguestfs-1.25.49/python/guestfs-py.c:21585: returned_pointer: Pointer "optargs_s.logdev" returned by "PyString_AsString(py_logdev)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def148]
libguestfs-1.25.49/python/guestfs-py.c:21595: returned_pointer: Pointer "optargs_s.rtdev" returned by "PyString_AsString(py_rtdev)" is never used.

Error: RESOURCE_LEAK (CWE-772): [#def149]
libguestfs-1.25.49/rescue/rescue.c:415: start: Starting defect path here.
libguestfs-1.25.49/rescue/rescue.c:437: alloc_fn: Storage is returned from allocation function "guestfs_inspect_get_mountpoints(guestfs_h *, char const *)".
libguestfs-1.25.49/src/actions-6.c:365:3: alloc_fn: Storage is returned from allocation function "guestfs__inspect_get_mountpoints(guestfs_h *, char const *)".
libguestfs-1.25.49/src/inspect.c:332:3: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)".
libguestfs-1.25.49/src/inspect.c:332:3: var_assign: Assigning: "ret" = "calloc(2UL * count + 1UL, 8UL)".
libguestfs-1.25.49/src/inspect.c:343:5: return_alloc: Returning allocated memory "ret".
libguestfs-1.25.49/src/actions-6.c:365:3: var_assign: Assigning: "r" = "guestfs__inspect_get_mountpoints(g, root)".
libguestfs-1.25.49/src/actions-6.c:390:3: return_alloc: Returning allocated memory "r".
libguestfs-1.25.49/rescue/rescue.c:437: var_assign: Assigning: "mps" = storage returned from "guestfs_inspect_get_mountpoints(g, roots[i])".
libguestfs-1.25.49/rescue/rescue.c:444: noescape: Resource "mps" is not freed or pointed-to in function "guestfs___count_strings(char * const *)".
libguestfs-1.25.49/src/utils.c:56:39: noescape: "guestfs___count_strings(char * const *)" does not free or save its pointer parameter "argv".
libguestfs-1.25.49/rescue/rescue.c:444: noescape: Resource "mps" is not freed or pointed-to in function "qsort(void *, size_t, size_t, __compar_fn_t)".
libguestfs-1.25.49/rescue/rescue.c:437: overwrite_var: Overwriting "mps" in "mps = guestfs_inspect_get_mountpoints(g, roots[i])" leaks the storage that "mps" points to.

Error: UNUSED_VALUE (CWE-563): [#def150]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:749: returned_pointer: Pointer "optargs_s.libvirturi" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def151]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:759: returned_pointer: Pointer "optargs_s.iface" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def152]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:774: returned_pointer: Pointer "optargs_s.readonlydisk" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def153]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:779: returned_pointer: Pointer "optargs_s.cachemode" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def154]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:784: returned_pointer: Pointer "optargs_s.discard" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def155]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1064: returned_pointer: Pointer "optargs_s.format" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def156]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1069: returned_pointer: Pointer "optargs_s.iface" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def157]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1074: returned_pointer: Pointer "optargs_s.name" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def158]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1079: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def159]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1084: returned_pointer: Pointer "optargs_s.protocol" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def160]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1107: returned_pointer: Pointer "optargs_s.username" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def161]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1112: returned_pointer: Pointer "optargs_s.secret" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def162]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1117: returned_pointer: Pointer "optargs_s.cachemode" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def163]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1122: returned_pointer: Pointer "optargs_s.discard" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def164]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1256: returned_pointer: Pointer "optargs_s.name" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def165]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:1261: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def166]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:4757: returned_pointer: Pointer "optargs_s.backingfile" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def167]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:4762: returned_pointer: Pointer "optargs_s.backingformat" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def168]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:4767: returned_pointer: Pointer "optargs_s.preallocation" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def169]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:4772: returned_pointer: Pointer "optargs_s.compat" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def170]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:10637: returned_pointer: Pointer "optargs_s.ostring" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def171]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15166: returned_pointer: Pointer "optargs_s.level" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def172]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15604: returned_pointer: Pointer "optargs_s.journaldevice" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def173]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15609: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def174]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15614: returned_pointer: Pointer "optargs_s.lastmounteddir" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def175]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15619: returned_pointer: Pointer "optargs_s.creatoros" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def176]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15624: returned_pointer: Pointer "optargs_s.fstype" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def177]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15629: returned_pointer: Pointer "optargs_s.usagetype" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def178]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:15634: returned_pointer: Pointer "optargs_s.uuid" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def179]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16106: returned_pointer: Pointer "optargs_s.features" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def180]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16241: returned_pointer: Pointer "optargs_s.datatype" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def181]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16251: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def182]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16256: returned_pointer: Pointer "optargs_s.metadata" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def183]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16556: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def184]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16561: returned_pointer: Pointer "optargs_s.uuid" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def185]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16750: returned_pointer: Pointer "optargs_s.suffix" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def186]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16899: returned_pointer: Pointer "optargs_s.options" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def187]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:16979: returned_pointer: Pointer "optargs_s.options" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def188]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:22451: returned_pointer: Pointer "optargs_s.directory" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def189]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:22609: returned_pointer: Pointer "optargs_s.compress" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def190]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:22681: returned_pointer: Pointer "optargs_s.compress" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def191]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:23021: returned_pointer: Pointer "optargs_s.errorbehavior" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def192]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:23041: returned_pointer: Pointer "optargs_s.lastmounteddirectory" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def193]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:24739: returned_pointer: Pointer "optargs_s.label" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def194]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:24744: returned_pointer: Pointer "optargs_s.uuid" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def195]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:25004: returned_pointer: Pointer "optargs_s.logdev" returned by "rb_string_value_cstr(&v)" is never used.

Error: UNUSED_VALUE (CWE-563): [#def196]
libguestfs-1.25.49/ruby/ext/guestfs/_guestfs.c:25009: returned_pointer: Pointer "optargs_s.rtdev" returned by "rb_string_value_cstr(&v)" is never used.

Error: FORWARD_NULL (CWE-476): [#def197]
libguestfs-1.25.49/lua/lua-guestfs.c:5963: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5968: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rboolerr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:41:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def198]
libguestfs-1.25.49/lua/lua-guestfs.c:6236: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6242: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstring(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:76:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def199]
libguestfs-1.25.49/lua/lua-guestfs.c:6346: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6351: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstructerr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:117:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def200]
libguestfs-1.25.49/lua/lua-guestfs.c:661: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:667: var_deref_model: Passing null pointer "g" to function "guestfs_add_drive_ro(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:152:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def201]
libguestfs-1.25.49/lua/lua-guestfs.c:3893: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3898: var_deref_model: Passing null pointer "g" to function "guestfs_get_path(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:198:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def202]
libguestfs-1.25.49/lua/lua-guestfs.c:11111: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11117: var_deref_model: Passing null pointer "g" to function "guestfs_set_append(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:233:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def203]
libguestfs-1.25.49/lua/lua-guestfs.c:11451: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11457: var_deref_model: Passing null pointer "g" to function "guestfs_set_memsize(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:277:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def204]
libguestfs-1.25.49/lua/lua-guestfs.c:11598: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11604: var_deref_model: Passing null pointer "g" to function "guestfs_set_selinux(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:318:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def205]
libguestfs-1.25.49/lua/lua-guestfs.c:4094: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4099: var_deref_model: Passing null pointer "g" to function "guestfs_get_trace(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:358:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def206]
libguestfs-1.25.49/lua/lua-guestfs.c:11238: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11244: var_deref_model: Passing null pointer "g" to function "guestfs_set_direct(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:393:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def207]
libguestfs-1.25.49/lua/lua-guestfs.c:683: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:690: 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.25.49/src/actions-0.c:435:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def208]
libguestfs-1.25.49/lua/lua-guestfs.c:5529: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5534: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_os(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:487:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def209]
libguestfs-1.25.49/lua/lua-guestfs.c:5016: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5022: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_distro(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:531:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def210]
libguestfs-1.25.49/lua/lua-guestfs.c:5191: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5197: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_minor_version(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:573:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def211]
libguestfs-1.25.49/lua/lua-guestfs.c:5062: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5068: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_filesystems(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:615:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def212]
libguestfs-1.25.49/lua/lua-guestfs.c:531: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:573: 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.25.49/src/actions-0.c:673:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def213]
libguestfs-1.25.49/lua/lua-guestfs.c:5236: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5242: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_package_format(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:780:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def214]
libguestfs-1.25.49/lua/lua-guestfs.c:5484: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5490: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_list_applications(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:822:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def215]
libguestfs-1.25.49/lua/lua-guestfs.c:3527: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3532: var_deref_model: Passing null pointer "g" to function "guestfs_get_attach_method(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:863:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def216]
libguestfs-1.25.49/lua/lua-guestfs.c:11174: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11180: var_deref_model: Passing null pointer "g" to function "guestfs_set_backend(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:898:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def217]
libguestfs-1.25.49/lua/lua-guestfs.c:5305: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5311: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_product_variant(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:945:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def218]
libguestfs-1.25.49/lua/lua-guestfs.c:3913: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3918: var_deref_model: Passing null pointer "g" to function "guestfs_get_pgroup(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:986:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def219]
libguestfs-1.25.49/lua/lua-guestfs.c:4033: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4038: var_deref_model: Passing null pointer "g" to function "guestfs_get_smp(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1020:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def220]
libguestfs-1.25.49/lua/lua-guestfs.c:12773: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12786: 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.25.49/src/actions-0.c:1061:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def221]
libguestfs-1.25.49/lua/lua-guestfs.c:10528: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10534: var_deref_model: Passing null pointer "g" to function "guestfs_read_file(guestfs_h *, char const *, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1106:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def222]
libguestfs-1.25.49/lua/lua-guestfs.c:13423: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13430: var_deref_model: Passing null pointer "g" to function "guestfs_write(guestfs_h *, char const *, char const *, size_t)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1150:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def223]
libguestfs-1.25.49/lua/lua-guestfs.c:2719: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2725: var_deref_model: Passing null pointer "g" to function "guestfs_disk_has_backing_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1199:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def224]
libguestfs-1.25.49/lua/lua-guestfs.c:3787: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3793: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credential_defresult(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1241:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def225]
libguestfs-1.25.49/lua/lua-guestfs.c:3610: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3615: var_deref_model: Passing null pointer "g" to function "guestfs_get_cachedir(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1276:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def226]
libguestfs-1.25.49/lua/lua-guestfs.c:11535: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11541: var_deref_model: Passing null pointer "g" to function "guestfs_set_program(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1347:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def227]
libguestfs-1.25.49/lua/lua-guestfs.c:6879: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6884: var_deref_model: Passing null pointer "g" to function "guestfs_journal_get(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1388:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def228]
libguestfs-1.25.49/lua/lua-guestfs.c:7533: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7539: var_deref_model: Passing null pointer "g" to function "guestfs_ll(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1429:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def229]
libguestfs-1.25.49/lua/lua-guestfs.c:10407: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10412: var_deref_model: Passing null pointer "g" to function "guestfs_pvs(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1524:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def230]
libguestfs-1.25.49/lua/lua-guestfs.c:990: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:996: var_deref_model: Passing null pointer "g" to function "guestfs_aug_match(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1626:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def231]
libguestfs-1.25.49/lua/lua-guestfs.c:967: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:973: var_deref_model: Passing null pointer "g" to function "guestfs_aug_ls(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1737:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def232]
libguestfs-1.25.49/lua/lua-guestfs.c:10874: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10880: var_deref_model: Passing null pointer "g" to function "guestfs_rm_rf(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1847:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def233]
libguestfs-1.25.49/lua/lua-guestfs.c:10322: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10328: var_deref_model: Passing null pointer "g" to function "guestfs_pvcreate(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:1942:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def234]
libguestfs-1.25.49/lua/lua-guestfs.c:2050: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2056: var_deref_model: Passing null pointer "g" to function "guestfs_command_lines(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2038:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def235]
libguestfs-1.25.49/lua/lua-guestfs.c:8124: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8130: var_deref_model: Passing null pointer "g" to function "guestfs_lvremove(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2157:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def236]
libguestfs-1.25.49/lua/lua-guestfs.c:3449: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3456: var_deref_model: Passing null pointer "g" to function "guestfs_fsck(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2254:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def237]
libguestfs-1.25.49/lua/lua-guestfs.c:2418: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2425: var_deref_model: Passing null pointer "g" to function "guestfs_cp(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2358:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def238]
libguestfs-1.25.49/lua/lua-guestfs.c:9554: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9561: var_deref_model: Passing null pointer "g" to function "guestfs_mv(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2461:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def239]
libguestfs-1.25.49/lua/lua-guestfs.c:11905: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11911: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_l(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2564:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def240]
libguestfs-1.25.49/lua/lua-guestfs.c:13032: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13038: var_deref_model: Passing null pointer "g" to function "guestfs_vg_activate_all(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2660:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def241]
libguestfs-1.25.49/lua/lua-guestfs.c:11069: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11075: var_deref_model: Passing null pointer "g" to function "guestfs_scrub_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2749:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def242]
libguestfs-1.25.49/lua/lua-guestfs.c:13378: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13384: var_deref_model: Passing null pointer "g" to function "guestfs_wc_w(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2845:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def243]
libguestfs-1.25.49/lua/lua-guestfs.c:2623: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2628: var_deref_model: Passing null pointer "g" to function "guestfs_df_h(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:2940:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def244]
libguestfs-1.25.49/lua/lua-guestfs.c:11750: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11759: 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.25.49/src/actions-0.c:3030:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def245]
libguestfs-1.25.49/lua/lua-guestfs.c:7672: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7679: var_deref_model: Passing null pointer "g" to function "guestfs_lremovexattr(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3142:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def246]
libguestfs-1.25.49/lua/lua-guestfs.c:9037: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9043: var_deref_model: Passing null pointer "g" to function "guestfs_mkmountpoint(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3244:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def247]
libguestfs-1.25.49/lua/lua-guestfs.c:13859: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13866: var_deref_model: Passing null pointer "g" to function "guestfs_zfgrepi(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3341:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def248]
libguestfs-1.25.49/lua/lua-guestfs.c:7603: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7610: var_deref_model: Passing null pointer "g" to function "guestfs_ln_f(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3459:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def249]
libguestfs-1.25.49/lua/lua-guestfs.c:7626: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7633: var_deref_model: Passing null pointer "g" to function "guestfs_ln_s(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3562:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def250]
libguestfs-1.25.49/lua/lua-guestfs.c:9220: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9226: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3664:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def251]
libguestfs-1.25.49/lua/lua-guestfs.c:9873: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9880: var_deref_model: Passing null pointer "g" to function "guestfs_part_disk(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3760:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def252]
libguestfs-1.25.49/lua/lua-guestfs.c:9993: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9999: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_parttype(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3863:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def253]
libguestfs-1.25.49/lua/lua-guestfs.c:13209: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13216: var_deref_model: Passing null pointer "g" to function "guestfs_vgrename(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:3960:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def254]
libguestfs-1.25.49/lua/lua-guestfs.c:13292: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13298: var_deref_model: Passing null pointer "g" to function "guestfs_vguuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:4063:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def255]
libguestfs-1.25.49/lua/lua-guestfs.c:10476: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10484: 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.25.49/src/actions-0.c:4163:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def256]
libguestfs-1.25.49/lua/lua-guestfs.c:12939: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12945: var_deref_model: Passing null pointer "g" to function "guestfs_vfs_label(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:4279:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def257]
libguestfs-1.25.49/lua/lua-guestfs.c:7843: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7849: var_deref_model: Passing null pointer "g" to function "guestfs_luks_close(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:4375:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def258]
libguestfs-1.25.49/lua/lua-guestfs.c:10788: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10794: var_deref_model: Passing null pointer "g" to function "guestfs_resize2fs_M(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:4470:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def259]
libguestfs-1.25.49/lua/lua-guestfs.c:9321: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9336: 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.25.49/src/actions-0.c:4573:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def260]
libguestfs-1.25.49/lua/lua-guestfs.c:9725: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9743: 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.25.49/src/actions-0.c:4702:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def261]
libguestfs-1.25.49/lua/lua-guestfs.c:2113: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2129: 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.25.49/src/actions-0.c:4828:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def262]
libguestfs-1.25.49/lua/lua-guestfs.c:2078: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2094: 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.25.49/src/actions-0.c:4966:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def263]
libguestfs-1.25.49/lua/lua-guestfs.c:8421: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8427: var_deref_model: Passing null pointer "g" to function "guestfs_md_stop(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:5095:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def264]
libguestfs-1.25.49/lua/lua-guestfs.c:2879: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2897: 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.25.49/src/actions-0.c:5197:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def265]
libguestfs-1.25.49/lua/lua-guestfs.c:13141: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13147: var_deref_model: Passing null pointer "g" to function "guestfs_vgmeta(guestfs_h *, char const *, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:5316:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def266]
libguestfs-1.25.49/lua/lua-guestfs.c:8958: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9000: 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.25.49/src/actions-0.c:5432:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def267]
libguestfs-1.25.49/lua/lua-guestfs.c:13073: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13078: var_deref_model: Passing null pointer "g" to function "guestfs_vgchange_uuid_all(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:5622:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def268]
libguestfs-1.25.49/lua/lua-guestfs.c:4523: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4530: 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.25.49/src/actions-0.c:5710:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def269]
libguestfs-1.25.49/lua/lua-guestfs.c:4725: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4731: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_key(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:5809:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def270]
libguestfs-1.25.49/lua/lua-guestfs.c:4748: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4754: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_type(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:5900:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def271]
libguestfs-1.25.49/lua/lua-guestfs.c:4619: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4628: 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.25.49/src/actions-0.c:5994:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def272]
libguestfs-1.25.49/lua/lua-guestfs.c:9016: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9022: var_deref_model: Passing null pointer "g" to function "guestfs_mklost_and_found(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6300:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def273]
libguestfs-1.25.49/lua/lua-guestfs.c:437: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:443: var_deref_model: Passing null pointer "g" to function "guestfs_acl_delete_def_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6395:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def274]
libguestfs-1.25.49/lua/lua-guestfs.c:7110: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7116: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_diskgroup_name(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6491:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def275]
libguestfs-1.25.49/lua/lua-guestfs.c:7133: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7139: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_diskgroup_volumes(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6588:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def276]
libguestfs-1.25.49/lua/lua-guestfs.c:10745: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10752: var_deref_model: Passing null pointer "g" to function "guestfs_rename(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6699:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def277]
libguestfs-1.25.49/lua/lua-guestfs.c:3053: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3059: var_deref_model: Passing null pointer "g" to function "guestfs_extlinux(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6801:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def278]
libguestfs-1.25.49/lua/lua-guestfs.c:6900: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6905: var_deref_model: Passing null pointer "g" to function "guestfs_journal_get_data_threshold(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-0.c:6994:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def279]
libguestfs-1.25.49/lua/lua-guestfs.c:6174: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6180: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rint64(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:42:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def280]
libguestfs-1.25.49/lua/lua-guestfs.c:6030: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6036: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconstoptstring(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:84:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def281]
libguestfs-1.25.49/lua/lua-guestfs.c:6258: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6263: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstringerr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:119:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def282]
libguestfs-1.25.49/lua/lua-guestfs.c:6368: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6374: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstructlist(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:154:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def283]
libguestfs-1.25.49/lua/lua-guestfs.c:6390: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6395: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstructlisterr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:195:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def284]
libguestfs-1.25.49/lua/lua-guestfs.c:6008: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6013: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rbufferouterr(guestfs_h *, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:230:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def285]
libguestfs-1.25.49/lua/lua-guestfs.c:2145: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2152: var_deref_model: Passing null pointer "g" to function "guestfs_config(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:266:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def286]
libguestfs-1.25.49/lua/lua-guestfs.c:3973: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3978: var_deref_model: Passing null pointer "g" to function "guestfs_get_qemu(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:316:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def287]
libguestfs-1.25.49/lua/lua-guestfs.c:11153: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11159: var_deref_model: Passing null pointer "g" to function "guestfs_set_autosync(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:351:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def288]
libguestfs-1.25.49/lua/lua-guestfs.c:11705: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11711: var_deref_model: Passing null pointer "g" to function "guestfs_set_verbose(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:387:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def289]
libguestfs-1.25.49/lua/lua-guestfs.c:4134: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4139: var_deref_model: Passing null pointer "g" to function "guestfs_get_verbose(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:422:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def290]
libguestfs-1.25.49/lua/lua-guestfs.c:4053: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4058: var_deref_model: Passing null pointer "g" to function "guestfs_get_state(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:456:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def291]
libguestfs-1.25.49/lua/lua-guestfs.c:3873: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3878: var_deref_model: Passing null pointer "g" to function "guestfs_get_network(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:490:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def292]
libguestfs-1.25.49/lua/lua-guestfs.c:2534: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2539: var_deref_model: Passing null pointer "g" to function "guestfs_debug_drives(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:524:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def293]
libguestfs-1.25.49/lua/lua-guestfs.c:5507: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5513: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_list_applications2(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:568:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def294]
libguestfs-1.25.49/lua/lua-guestfs.c:5462: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5468: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_is_netinst(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:610:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def295]
libguestfs-1.25.49/lua/lua-guestfs.c:5134: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5152: 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.25.49/src/actions-1.c:660:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def296]
libguestfs-1.25.49/lua/lua-guestfs.c:9393: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9398: var_deref_model: Passing null pointer "g" to function "guestfs_mount_local_run(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:713:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def297]
libguestfs-1.25.49/lua/lua-guestfs.c:1880: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1886: var_deref_model: Passing null pointer "g" to function "guestfs_cat(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:748:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def298]
libguestfs-1.25.49/lua/lua-guestfs.c:7791: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7798: var_deref_model: Passing null pointer "g" to function "guestfs_lstatlist(guestfs_h *, char const *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:791:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def299]
libguestfs-1.25.49/lua/lua-guestfs.c:3810: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3816: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credential_prompt(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:847:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def300]
libguestfs-1.25.49/lua/lua-guestfs.c:9296: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9303: var_deref_model: Passing null pointer "g" to function "guestfs_mount(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:889:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def301]
libguestfs-1.25.49/lua/lua-guestfs.c:12495: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12501: var_deref_model: Passing null pointer "g" to function "guestfs_touch(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:991:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def302]
libguestfs-1.25.49/lua/lua-guestfs.c:7511: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7516: var_deref_model: Passing null pointer "g" to function "guestfs_list_partitions(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1085:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def303]
libguestfs-1.25.49/lua/lua-guestfs.c:13251: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13256: var_deref_model: Passing null pointer "g" to function "guestfs_vgs_full(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1185:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def304]
libguestfs-1.25.49/lua/lua-guestfs.c:831: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:838: var_deref_model: Passing null pointer "g" to function "guestfs_aug_defvar(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1275:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def305]
libguestfs-1.25.49/lua/lua-guestfs.c:3031: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3037: var_deref_model: Passing null pointer "g" to function "guestfs_exists(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1377:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def306]
libguestfs-1.25.49/lua/lua-guestfs.c:12720: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12738: 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.25.49/src/actions-1.c:1480:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def307]
libguestfs-1.25.49/lua/lua-guestfs.c:9531: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9536: var_deref_model: Passing null pointer "g" to function "guestfs_mounts(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1596:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def308]
libguestfs-1.25.49/lua/lua-guestfs.c:8082: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8087: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_remove_all(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1695:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def309]
libguestfs-1.25.49/lua/lua-guestfs.c:7767: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7773: var_deref_model: Passing null pointer "g" to function "guestfs_lstat(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1782:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def310]
libguestfs-1.25.49/lua/lua-guestfs.c:12627: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12633: var_deref_model: Passing null pointer "g" to function "guestfs_tune2fs_l(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1880:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def311]
libguestfs-1.25.49/lua/lua-guestfs.c:9462: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9469: var_deref_model: Passing null pointer "g" to function "guestfs_mount_ro(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:1991:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def312]
libguestfs-1.25.49/lua/lua-guestfs.c:13009: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13016: var_deref_model: Passing null pointer "g" to function "guestfs_vg_activate(guestfs_h *, int, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2094:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def313]
libguestfs-1.25.49/lua/lua-guestfs.c:9597: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9604: var_deref_model: Passing null pointer "g" to function "guestfs_ntfs_3g_probe(guestfs_h *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2202:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def314]
libguestfs-1.25.49/lua/lua-guestfs.c:8507: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8513: var_deref_model: Passing null pointer "g" to function "guestfs_mkdtemp(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2301:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def315]
libguestfs-1.25.49/lua/lua-guestfs.c:12326: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12332: var_deref_model: Passing null pointer "g" to function "guestfs_tail(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2398:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def316]
libguestfs-1.25.49/lua/lua-guestfs.c:4843: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4849: var_deref_model: Passing null pointer "g" to function "guestfs_initrd_list(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2509:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def317]
libguestfs-1.25.49/lua/lua-guestfs.c:9061: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9070: var_deref_model: Passing null pointer "g" to function "guestfs_mknod(guestfs_h *, int, int, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2622:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def318]
libguestfs-1.25.49/lua/lua-guestfs.c:13884: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13891: var_deref_model: Passing null pointer "g" to function "guestfs_zfile(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2725:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def319]
libguestfs-1.25.49/lua/lua-guestfs.c:4202: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4208: var_deref_model: Passing null pointer "g" to function "guestfs_getxattrs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:2829:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def320]
libguestfs-1.25.49/lua/lua-guestfs.c:4251: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4278: 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.25.49/src/actions-1.c:2935:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def321]
libguestfs-1.25.49/lua/lua-guestfs.c:13834: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13841: var_deref_model: Passing null pointer "g" to function "guestfs_zfgrep(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3092:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def322]
libguestfs-1.25.49/lua/lua-guestfs.c:13725: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13732: var_deref_model: Passing null pointer "g" to function "guestfs_zegrepi(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3211:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def323]
libguestfs-1.25.49/lua/lua-guestfs.c:10646: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10652: var_deref_model: Passing null pointer "g" to function "guestfs_realpath(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3329:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def324]
libguestfs-1.25.49/lua/lua-guestfs.c:12129: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12135: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3425:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def325]
libguestfs-1.25.49/lua/lua-guestfs.c:4972: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4978: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_rm_watch(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3520:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def326]
libguestfs-1.25.49/lua/lua-guestfs.c:4908: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4913: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_files(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3608:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def327]
libguestfs-1.25.49/lua/lua-guestfs.c:7045: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7053: var_deref_model: Passing null pointer "g" to function "guestfs_lchown(guestfs_h *, int, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3711:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def328]
libguestfs-1.25.49/lua/lua-guestfs.c:10229: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10237: 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.25.49/src/actions-1.c:3814:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def329]
libguestfs-1.25.49/lua/lua-guestfs.c:2487: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2494: var_deref_model: Passing null pointer "g" to function "guestfs_dd(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:3928:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def330]
libguestfs-1.25.49/lua/lua-guestfs.c:13272: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13277: var_deref_model: Passing null pointer "g" to function "guestfs_vgscan(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4028:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def331]
libguestfs-1.25.49/lua/lua-guestfs.c:1929: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1936: var_deref_model: Passing null pointer "g" to function "guestfs_checksum_device(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4116:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def332]
libguestfs-1.25.49/lua/lua-guestfs.c:8192: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8199: var_deref_model: Passing null pointer "g" to function "guestfs_lvresize_free(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4220:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def333]
libguestfs-1.25.49/lua/lua-guestfs.c:763: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:769: var_deref_model: Passing null pointer "g" to function "guestfs_aug_clear(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4317:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def334]
libguestfs-1.25.49/lua/lua-guestfs.c:4114: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4119: var_deref_model: Passing null pointer "g" to function "guestfs_get_umask(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4411:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def335]
libguestfs-1.25.49/lua/lua-guestfs.c:1170: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1177: var_deref_model: Passing null pointer "g" to function "guestfs_base64_in(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4499:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def336]
libguestfs-1.25.49/lua/lua-guestfs.c:1193: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1200: var_deref_model: Passing null pointer "g" to function "guestfs_base64_out(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4619:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def337]
libguestfs-1.25.49/lua/lua-guestfs.c:7943: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7951: 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.25.49/src/actions-1.c:4729:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def338]
libguestfs-1.25.49/lua/lua-guestfs.c:7968: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7976: 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.25.49/src/actions-1.c:4840:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def339]
libguestfs-1.25.49/lua/lua-guestfs.c:3402: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3408: var_deref_model: Passing null pointer "g" to function "guestfs_findfs_label(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:4950:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def340]
libguestfs-1.25.49/lua/lua-guestfs.c:6727: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6733: var_deref_model: Passing null pointer "g" to function "guestfs_is_symlink(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:5047:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def341]
libguestfs-1.25.49/lua/lua-guestfs.c:6771: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6777: var_deref_model: Passing null pointer "g" to function "guestfs_is_zero(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:5144:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def342]
libguestfs-1.25.49/lua/lua-guestfs.c:2215: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2242: 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.25.49/src/actions-1.c:5248:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def343]
libguestfs-1.25.49/lua/lua-guestfs.c:8328: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8359: 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.25.49/src/actions-1.c:5396:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def344]
libguestfs-1.25.49/lua/lua-guestfs.c:7556: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7562: var_deref_model: Passing null pointer "g" to function "guestfs_llz(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:5560:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def345]
libguestfs-1.25.49/lua/lua-guestfs.c:9646: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9677: 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.25.49/src/actions-1.c:5664:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def346]
libguestfs-1.25.49/lua/lua-guestfs.c:1621: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1639: 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.25.49/src/actions-1.c:5825:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def347]
libguestfs-1.25.49/lua/lua-guestfs.c:2581: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2587: var_deref_model: Passing null pointer "g" to function "guestfs_device_index(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:5943:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def348]
libguestfs-1.25.49/lua/lua-guestfs.c:3309: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3316: var_deref_model: Passing null pointer "g" to function "guestfs_fill_dir(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6040:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def349]
libguestfs-1.25.49/lua/lua-guestfs.c:13496: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13534: 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.25.49/src/actions-1.c:6144:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def350]
libguestfs-1.25.49/lua/lua-guestfs.c:4704: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4709: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_root(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6312:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def351]
libguestfs-1.25.49/lua/lua-guestfs.c:4593: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4599: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_parent(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6400:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def352]
libguestfs-1.25.49/lua/lua-guestfs.c:4794: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4800: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_value(guestfs_h *, int64_t, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6492:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def353]
libguestfs-1.25.49/lua/lua-guestfs.c:7067: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7072: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_create_all(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6593:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def354]
libguestfs-1.25.49/lua/lua-guestfs.c:7087: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7093: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_diskgroup_disks(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6680:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def355]
libguestfs-1.25.49/lua/lua-guestfs.c:12297: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12311: 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.25.49/src/actions-1.c:6797:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def356]
libguestfs-1.25.49/lua/lua-guestfs.c:2170: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2197: var_deref_model: Passing null pointer "g" to function "guestfs_copy_attributes_argv(guestfs_h *, char const *, char const *, struct guestfs_copy_attributes_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-1.c:6920:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def357]
libguestfs-1.25.49/lua/lua-guestfs.c:6215: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6220: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rinterr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:41:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def358]
libguestfs-1.25.49/lua/lua-guestfs.c:6048: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6053: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconstoptstringerr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:75:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def359]
libguestfs-1.25.49/lua/lua-guestfs.c:5985: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5991: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rbufferout(guestfs_h *, char const *, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:105:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def360]
libguestfs-1.25.49/lua/lua-guestfs.c:6412: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6418: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_set_output(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:147:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def361]
libguestfs-1.25.49/lua/lua-guestfs.c:5893: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5898: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_close_output(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:188:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def362]
libguestfs-1.25.49/lua/lua-guestfs.c:7004: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7009: var_deref_model: Passing null pointer "g" to function "guestfs_kill_subprocess(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:222:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def363]
libguestfs-1.25.49/lua/lua-guestfs.c:11493: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11499: var_deref_model: Passing null pointer "g" to function "guestfs_set_path(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:257:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def364]
libguestfs-1.25.49/lua/lua-guestfs.c:6632: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6637: var_deref_model: Passing null pointer "g" to function "guestfs_is_launching(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:300:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def365]
libguestfs-1.25.49/lua/lua-guestfs.c:3216: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3222: var_deref_model: Passing null pointer "g" to function "guestfs_file_architecture(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:335:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def366]
libguestfs-1.25.49/lua/lua-guestfs.c:4993: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4999: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_arch(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:377:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def367]
libguestfs-1.25.49/lua/lua-guestfs.c:5395: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5401: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_windows_systemroot(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:574:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def368]
libguestfs-1.25.49/lua/lua-guestfs.c:3568: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3573: var_deref_model: Passing null pointer "g" to function "guestfs_get_backend(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:615:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def369]
libguestfs-1.25.49/lua/lua-guestfs.c:5372: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5378: 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.25.49/src/actions-2.c:650:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def370]
libguestfs-1.25.49/lua/lua-guestfs.c:5039: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5045: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_drive_mappings(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:692:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def371]
libguestfs-1.25.49/lua/lua-guestfs.c:11514: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11520: var_deref_model: Passing null pointer "g" to function "guestfs_set_pgroup(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:743:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def372]
libguestfs-1.25.49/lua/lua-guestfs.c:13447: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13454: 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.25.49/src/actions-2.c:786:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def373]
libguestfs-1.25.49/lua/lua-guestfs.c:11429: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11435: var_deref_model: Passing null pointer "g" to function "guestfs_set_libvirt_supported_credentials(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:835:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def374]
libguestfs-1.25.49/lua/lua-guestfs.c:11407: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11414: 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.25.49/src/actions-2.c:887:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def375]
libguestfs-1.25.49/lua/lua-guestfs.c:9780: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9785: var_deref_model: Passing null pointer "g" to function "guestfs_parse_environment(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:930:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def376]
libguestfs-1.25.49/lua/lua-guestfs.c:707: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:725: var_deref_model: Passing null pointer "g" to function "guestfs_add_drive_scratch_argv(guestfs_h *, int64_t, struct guestfs_add_drive_scratch_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:972:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def377]
libguestfs-1.25.49/lua/lua-guestfs.c:10428: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10433: var_deref_model: Passing null pointer "g" to function "guestfs_pvs_full(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1037:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def378]
libguestfs-1.25.49/lua/lua-guestfs.c:8442: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8448: var_deref_model: Passing null pointer "g" to function "guestfs_mkdir(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1125:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def379]
libguestfs-1.25.49/lua/lua-guestfs.c:2003: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2011: var_deref_model: Passing null pointer "g" to function "guestfs_chown(guestfs_h *, int, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1222:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def380]
libguestfs-1.25.49/lua/lua-guestfs.c:12752: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12757: var_deref_model: Passing null pointer "g" to function "guestfs_umount_all(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1319:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def381]
libguestfs-1.25.49/lua/lua-guestfs.c:2026: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2032: var_deref_model: Passing null pointer "g" to function "guestfs_command(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1406:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def382]
libguestfs-1.25.49/lua/lua-guestfs.c:1368: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1374: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getss(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1512:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def383]
libguestfs-1.25.49/lua/lua-guestfs.c:1346: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1352: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getsize64(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1609:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def384]
libguestfs-1.25.49/lua/lua-guestfs.c:1412: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1418: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_rereadpt(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1705:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def385]
libguestfs-1.25.49/lua/lua-guestfs.c:2510: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2517: var_deref_model: Passing null pointer "g" to function "guestfs_debug(guestfs_h *, char const *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1802:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def386]
libguestfs-1.25.49/lua/lua-guestfs.c:11339: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11346: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2uuid(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:1915:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def387]
libguestfs-1.25.49/lua/lua-guestfs.c:4321: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4328: var_deref_model: Passing null pointer "g" to function "guestfs_grub_install(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2018:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def388]
libguestfs-1.25.49/lua/lua-guestfs.c:2834: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2840: var_deref_model: Passing null pointer "g" to function "guestfs_drop_caches(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2120:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def389]
libguestfs-1.25.49/lua/lua-guestfs.c:10364: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10370: var_deref_model: Passing null pointer "g" to function "guestfs_pvresize(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2209:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def390]
libguestfs-1.25.49/lua/lua-guestfs.c:11859: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11865: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_disk_geometry(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2305:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def391]
libguestfs-1.25.49/lua/lua-guestfs.c:10767: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10773: var_deref_model: Passing null pointer "g" to function "guestfs_resize2fs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2401:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def392]
libguestfs-1.25.49/lua/lua-guestfs.c:11928: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11934: var_deref_model: Passing null pointer "g" to function "guestfs_sh(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2497:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def393]
libguestfs-1.25.49/lua/lua-guestfs.c:4225: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4231: var_deref_model: Passing null pointer "g" to function "guestfs_glob_expand(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2594:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def394]
libguestfs-1.25.49/lua/lua-guestfs.c:8864: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8871: var_deref_model: Passing null pointer "g" to function "guestfs_mkfifo(guestfs_h *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2705:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def395]
libguestfs-1.25.49/lua/lua-guestfs.c:10574: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10580: var_deref_model: Passing null pointer "g" to function "guestfs_readdir(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:2803:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def396]
libguestfs-1.25.49/lua/lua-guestfs.c:7743: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7752: 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.25.49/src/actions-2.c:2903:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def397]
libguestfs-1.25.49/lua/lua-guestfs.c:2958: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2965: var_deref_model: Passing null pointer "g" to function "guestfs_egrep(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3016:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def398]
libguestfs-1.25.49/lua/lua-guestfs.c:13909: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13916: var_deref_model: Passing null pointer "g" to function "guestfs_zgrep(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3135:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def399]
libguestfs-1.25.49/lua/lua-guestfs.c:10597: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10603: var_deref_model: Passing null pointer "g" to function "guestfs_readlink(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3253:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def400]
libguestfs-1.25.49/lua/lua-guestfs.c:12234: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12240: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_label(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3349:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def401]
libguestfs-1.25.49/lua/lua-guestfs.c:9274: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9280: var_deref_model: Passing null pointer "g" to function "guestfs_modprobe(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3444:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def402]
libguestfs-1.25.49/lua/lua-guestfs.c:10064: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10072: var_deref_model: Passing null pointer "g" to function "guestfs_part_set_bootable(guestfs_h *, char const *, int, int)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3541:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def403]
libguestfs-1.25.49/lua/lua-guestfs.c:10039: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10045: var_deref_model: Passing null pointer "g" to function "guestfs_part_list(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3641:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def404]
libguestfs-1.25.49/lua/lua-guestfs.c:13164: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13170: var_deref_model: Passing null pointer "g" to function "guestfs_vgpvuuids(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3739:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def405]
libguestfs-1.25.49/lua/lua-guestfs.c:12674: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12681: var_deref_model: Passing null pointer "g" to function "guestfs_txz_out(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:3850:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def406]
libguestfs-1.25.49/lua/lua-guestfs.c:7918: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7926: 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.25.49/src/actions-2.c:3960:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def407]
libguestfs-1.25.49/lua/lua-guestfs.c:6653: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6659: var_deref_model: Passing null pointer "g" to function "guestfs_is_lv(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:4065:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def408]
libguestfs-1.25.49/lua/lua-guestfs.c:6487: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6501: var_deref_model: Passing null pointer "g" to function "guestfs_is_chardev_opts_argv(guestfs_h *, char const *, struct guestfs_is_chardev_opts_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:4169:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def409]
libguestfs-1.25.49/lua/lua-guestfs.c:6697: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6711: var_deref_model: Passing null pointer "g" to function "guestfs_is_socket_opts_argv(guestfs_h *, char const *, struct guestfs_is_socket_opts_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:4287:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def410]
libguestfs-1.25.49/lua/lua-guestfs.c:10162: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10168: var_deref_model: Passing null pointer "g" to function "guestfs_part_to_dev(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:4398:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def411]
libguestfs-1.25.49/lua/lua-guestfs.c:12826: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12834: 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.25.49/src/actions-2.c:4496:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def412]
libguestfs-1.25.49/lua/lua-guestfs.c:10503: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10511: 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.25.49/src/actions-2.c:4621:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def413]
libguestfs-1.25.49/lua/lua-guestfs.c:2260: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2287: 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.25.49/src/actions-2.c:4744:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def414]
libguestfs-1.25.49/lua/lua-guestfs.c:3652: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3658: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2attrs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:4885:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def415]
libguestfs-1.25.49/lua/lua-guestfs.c:3675: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3681: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2generation(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:4982:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def416]
libguestfs-1.25.49/lua/lua-guestfs.c:1655: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1662: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_set_seeding(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:5079:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def417]
libguestfs-1.25.49/lua/lua-guestfs.c:12896: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12901: var_deref_model: Passing null pointer "g" to function "guestfs_utsname(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:5175:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def418]
libguestfs-1.25.49/lua/lua-guestfs.c:10977: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10996: 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.25.49/src/actions-2.c:5271:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def419]
libguestfs-1.25.49/lua/lua-guestfs.c:4547: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4554: 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.25.49/src/actions-2.c:5397:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def420]
libguestfs-1.25.49/lua/lua-guestfs.c:4455: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4462: 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.25.49/src/actions-2.c:5497:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def421]
libguestfs-1.25.49/lua/lua-guestfs.c:7196: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7202: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_scan_devices(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:5596:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def422]
libguestfs-1.25.49/lua/lua-guestfs.c:2464: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2471: var_deref_model: Passing null pointer "g" to function "guestfs_cp_r(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:5716:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def423]
libguestfs-1.25.49/lua/lua-guestfs.c:6941: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6947: var_deref_model: Passing null pointer "g" to function "guestfs_journal_open(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:5818:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def424]
libguestfs-1.25.49/lua/lua-guestfs.c:925: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:931: var_deref_model: Passing null pointer "g" to function "guestfs_aug_label(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:5914:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def425]
libguestfs-1.25.49/lua/lua-guestfs.c:1236: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1242: var_deref_model: Passing null pointer "g" to function "guestfs_blkdiscardzeroes(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-2.c:6011:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def426]
libguestfs-1.25.49/lua/lua-guestfs.c:5914: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5927: 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.25.49/src/actions-3.c:48:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def427]
libguestfs-1.25.49/lua/lua-guestfs.c:6087: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6092: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconststringerr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:91:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def428]
libguestfs-1.25.49/lua/lua-guestfs.c:7023: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7028: var_deref_model: Passing null pointer "g" to function "guestfs_launch(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:125:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def429]
libguestfs-1.25.49/lua/lua-guestfs.c:11556: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11562: var_deref_model: Passing null pointer "g" to function "guestfs_set_qemu(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:165:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def430]
libguestfs-1.25.49/lua/lua-guestfs.c:11361: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11367: var_deref_model: Passing null pointer "g" to function "guestfs_set_hv(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:209:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def431]
libguestfs-1.25.49/lua/lua-guestfs.c:12917: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12922: var_deref_model: Passing null pointer "g" to function "guestfs_version(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:255:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def432]
libguestfs-1.25.49/lua/lua-guestfs.c:11577: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11583: var_deref_model: Passing null pointer "g" to function "guestfs_set_recovery_proc(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:290:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def433]
libguestfs-1.25.49/lua/lua-guestfs.c:3993: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3998: var_deref_model: Passing null pointer "g" to function "guestfs_get_recovery_proc(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:330:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def434]
libguestfs-1.25.49/lua/lua-guestfs.c:5349: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5355: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_type(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:365:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def435]
libguestfs-1.25.49/lua/lua-guestfs.c:7427: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7432: var_deref_model: Passing null pointer "g" to function "guestfs_list_filesystems(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:406:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def436]
libguestfs-1.25.49/lua/lua-guestfs.c:5418: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5424: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_is_live(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:450:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def437]
libguestfs-1.25.49/lua/lua-guestfs.c:9353: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9379: 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.25.49/src/actions-3.c:499:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def438]
libguestfs-1.25.49/lua/lua-guestfs.c:8280: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8287: var_deref_model: Passing null pointer "g" to function "guestfs_lxattrlist(guestfs_h *, char const *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:566:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def439]
libguestfs-1.25.49/lua/lua-guestfs.c:7694: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7700: var_deref_model: Passing null pointer "g" to function "guestfs_ls(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:622:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def440]
libguestfs-1.25.49/lua/lua-guestfs.c:4770: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4776: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_value_utf8(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:673:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def441]
libguestfs-1.25.49/lua/lua-guestfs.c:10700: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10706: var_deref_model: Passing null pointer "g" to function "guestfs_remove_drive(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:709:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def442]
libguestfs-1.25.49/lua/lua-guestfs.c:4073: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4078: var_deref_model: Passing null pointer "g" to function "guestfs_get_tmpdir(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:750:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def443]
libguestfs-1.25.49/lua/lua-guestfs.c:11195: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11201: var_deref_model: Passing null pointer "g" to function "guestfs_set_backend_settings(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:785:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def444]
libguestfs-1.25.49/lua/lua-guestfs.c:3589: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3594: var_deref_model: Passing null pointer "g" to function "guestfs_get_backend_settings(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:839:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def445]
libguestfs-1.25.49/lua/lua-guestfs.c:2649: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2681: var_deref_model: Passing null pointer "g" to function "guestfs_disk_create_argv(guestfs_h *, char const *, char const *, int64_t, struct guestfs_disk_create_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:892:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def446]
libguestfs-1.25.49/lua/lua-guestfs.c:7364: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7369: var_deref_model: Passing null pointer "g" to function "guestfs_list_devices(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:990:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def447]
libguestfs-1.25.49/lua/lua-guestfs.c:13230: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13235: var_deref_model: Passing null pointer "g" to function "guestfs_vgs(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1090:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def448]
libguestfs-1.25.49/lua/lua-guestfs.c:783: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:788: var_deref_model: Passing null pointer "g" to function "guestfs_aug_close(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1189:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def449]
libguestfs-1.25.49/lua/lua-guestfs.c:805: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:813: 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.25.49/src/actions-3.c:1278:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def450]
libguestfs-1.25.49/lua/lua-guestfs.c:854: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:860: var_deref_model: Passing null pointer "g" to function "guestfs_aug_get(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1390:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def451]
libguestfs-1.25.49/lua/lua-guestfs.c:1057: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1062: var_deref_model: Passing null pointer "g" to function "guestfs_aug_save(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1484:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def452]
libguestfs-1.25.49/lua/lua-guestfs.c:10832: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10838: var_deref_model: Passing null pointer "g" to function "guestfs_rm(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1570:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def453]
libguestfs-1.25.49/lua/lua-guestfs.c:10895: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10901: var_deref_model: Passing null pointer "g" to function "guestfs_rmdir(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1665:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def454]
libguestfs-1.25.49/lua/lua-guestfs.c:8486: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8492: var_deref_model: Passing null pointer "g" to function "guestfs_mkdir_p(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1760:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def455]
libguestfs-1.25.49/lua/lua-guestfs.c:1979: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1986: var_deref_model: Passing null pointer "g" to function "guestfs_chmod(guestfs_h *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1856:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def456]
libguestfs-1.25.49/lua/lua-guestfs.c:6603: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6617: var_deref_model: Passing null pointer "g" to function "guestfs_is_file_opts_argv(guestfs_h *, char const *, struct guestfs_is_file_opts_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:1961:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def457]
libguestfs-1.25.49/lua/lua-guestfs.c:6539: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6553: var_deref_model: Passing null pointer "g" to function "guestfs_is_dir_opts_argv(guestfs_h *, char const *, struct guestfs_is_dir_opts_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2079:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def458]
libguestfs-1.25.49/lua/lua-guestfs.c:13471: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13479: var_deref_model: Passing null pointer "g" to function "guestfs_write_file(guestfs_h *, char const *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2191:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def459]
libguestfs-1.25.49/lua/lua-guestfs.c:12037: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12043: var_deref_model: Passing null pointer "g" to function "guestfs_statvfs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2296:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def460]
libguestfs-1.25.49/lua/lua-guestfs.c:1456: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1462: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_setro(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2393:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def461]
libguestfs-1.25.49/lua/lua-guestfs.c:1390: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1396: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getsz(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2489:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def462]
libguestfs-1.25.49/lua/lua-guestfs.c:12802: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12809: var_deref_model: Passing null pointer "g" to function "guestfs_upload(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2586:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def463]
libguestfs-1.25.49/lua/lua-guestfs.c:1904: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1911: var_deref_model: Passing null pointer "g" to function "guestfs_checksum(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2707:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def464]
libguestfs-1.25.49/lua/lua-guestfs.c:12377: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12392: 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.25.49/src/actions-3.c:2818:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def465]
libguestfs-1.25.49/lua/lua-guestfs.c:3697: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3703: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2label(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:2958:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def466]
libguestfs-1.25.49/lua/lua-guestfs.c:13749: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13755: var_deref_model: Passing null pointer "g" to function "guestfs_zero(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3054:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def467]
libguestfs-1.25.49/lua/lua-guestfs.c:2762: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2767: var_deref_model: Passing null pointer "g" to function "guestfs_dmesg(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3148:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def468]
libguestfs-1.25.49/lua/lua-guestfs.c:10206: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10211: var_deref_model: Passing null pointer "g" to function "guestfs_ping_daemon(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3233:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def469]
libguestfs-1.25.49/lua/lua-guestfs.c:3008: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3015: var_deref_model: Passing null pointer "g" to function "guestfs_equal(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3321:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def470]
libguestfs-1.25.49/lua/lua-guestfs.c:12060: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12066: var_deref_model: Passing null pointer "g" to function "guestfs_strings(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3425:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def471]
libguestfs-1.25.49/lua/lua-guestfs.c:13812: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13818: var_deref_model: Passing null pointer "g" to function "guestfs_zerofree(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3535:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def472]
libguestfs-1.25.49/lua/lua-guestfs.c:2912: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2918: var_deref_model: Passing null pointer "g" to function "guestfs_e2fsck_f(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3630:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def473]
libguestfs-1.25.49/lua/lua-guestfs.c:2855: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2861: var_deref_model: Passing null pointer "g" to function "guestfs_du(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3726:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def474]
libguestfs-1.25.49/lua/lua-guestfs.c:9088: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9097: var_deref_model: Passing null pointer "g" to function "guestfs_mknod_b(guestfs_h *, int, int, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3825:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def475]
libguestfs-1.25.49/lua/lua-guestfs.c:3169: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3176: var_deref_model: Passing null pointer "g" to function "guestfs_fgrepi(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:3928:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def476]
libguestfs-1.25.49/lua/lua-guestfs.c:13934: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13941: var_deref_model: Passing null pointer "g" to function "guestfs_zgrepi(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4047:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def477]
libguestfs-1.25.49/lua/lua-guestfs.c:12150: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12156: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_label(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4164:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def478]
libguestfs-1.25.49/lua/lua-guestfs.c:12171: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12177: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4259:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def479]
libguestfs-1.25.49/lua/lua-guestfs.c:4930: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4936: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_init(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4354:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def480]
libguestfs-1.25.49/lua/lua-guestfs.c:4867: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4874: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_add_watch(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4445:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def481]
libguestfs-1.25.49/lua/lua-guestfs.c:11726: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11732: var_deref_model: Passing null pointer "g" to function "guestfs_setcon(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4543:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def482]
libguestfs-1.25.49/lua/lua-guestfs.c:4154: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4159: var_deref_model: Passing null pointer "g" to function "guestfs_getcon(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4637:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def483]
libguestfs-1.25.49/lua/lua-guestfs.c:8791: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8798: var_deref_model: Passing null pointer "g" to function "guestfs_mke2journal(guestfs_h *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:4725:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def484]
libguestfs-1.25.49/lua/lua-guestfs.c:8739: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8748: 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.25.49/src/actions-3.c:4825:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def485]
libguestfs-1.25.49/lua/lua-guestfs.c:8766: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8775: 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.25.49/src/actions-3.c:4939:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def486]
libguestfs-1.25.49/lua/lua-guestfs.c:2933: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2939: var_deref_model: Passing null pointer "g" to function "guestfs_echo_daemon(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5051:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def487]
libguestfs-1.25.49/lua/lua-guestfs.c:12516: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12522: var_deref_model: Passing null pointer "g" to function "guestfs_truncate(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5156:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def488]
libguestfs-1.25.49/lua/lua-guestfs.c:12872: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12882: 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.25.49/src/actions-3.c:5255:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def489]
libguestfs-1.25.49/lua/lua-guestfs.c:8464: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8471: var_deref_model: Passing null pointer "g" to function "guestfs_mkdir_mode(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5359:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def490]
libguestfs-1.25.49/lua/lua-guestfs.c:1126: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1132: var_deref_model: Passing null pointer "g" to function "guestfs_available(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5456:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def491]
libguestfs-1.25.49/lua/lua-guestfs.c:9850: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9857: var_deref_model: Passing null pointer "g" to function "guestfs_part_del(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5561:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def492]
libguestfs-1.25.49/lua/lua-guestfs.c:9759: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9766: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsresize_size(guestfs_h *, char const *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5659:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def493]
libguestfs-1.25.49/lua/lua-guestfs.c:12985: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12991: var_deref_model: Passing null pointer "g" to function "guestfs_vfs_uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5757:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def494]
libguestfs-1.25.49/lua/lua-guestfs.c:4178: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4185: var_deref_model: Passing null pointer "g" to function "guestfs_getxattr(guestfs_h *, char const *, char const *, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5856:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def495]
libguestfs-1.25.49/lua/lua-guestfs.c:6793: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6799: var_deref_model: Passing null pointer "g" to function "guestfs_is_zero_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:5973:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def496]
libguestfs-1.25.49/lua/lua-guestfs.c:1569: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1583: 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.25.49/src/actions-3.c:6076:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def497]
libguestfs-1.25.49/lua/lua-guestfs.c:1698: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1704: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_delete(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:6385:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def498]
libguestfs-1.25.49/lua/lua-guestfs.c:1719: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1725: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_list(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:6481:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def499]
libguestfs-1.25.49/lua/lua-guestfs.c:1598: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1604: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_filesystem_sync(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:6578:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def500]
libguestfs-1.25.49/lua/lua-guestfs.c:1523: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1530: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_device_delete(guestfs_h *, char * const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:6674:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def501]
libguestfs-1.25.49/lua/lua-guestfs.c:10940: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10959: 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.25.49/src/actions-3.c:6793:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def502]
libguestfs-1.25.49/lua/lua-guestfs.c:7718: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7725: var_deref_model: Passing null pointer "g" to function "guestfs_ls0(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:6918:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def503]
libguestfs-1.25.49/lua/lua-guestfs.c:4668: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4690: 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.25.49/src/actions-3.c:7033:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def504]
libguestfs-1.25.49/lua/lua-guestfs.c:4413: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4418: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_close(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:7156:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def505]
libguestfs-1.25.49/lua/lua-guestfs.c:459: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:466: var_deref_model: Passing null pointer "g" to function "guestfs_acl_get_file(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:7698:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def506]
libguestfs-1.25.49/lua/lua-guestfs.c:1811: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1817: var_deref_model: Passing null pointer "g" to function "guestfs_cap_get_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:7802:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def507]
libguestfs-1.25.49/lua/lua-guestfs.c:7155: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7160: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_remove_all(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:7896:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def508]
libguestfs-1.25.49/lua/lua-guestfs.c:7271: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7278: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_volume_type(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:7984:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def509]
libguestfs-1.25.49/lua/lua-guestfs.c:7221: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7228: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_volume_hint(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8089:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def510]
libguestfs-1.25.49/lua/lua-guestfs.c:9920: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9927: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_gpt_type(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8194:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def511]
libguestfs-1.25.49/lua/lua-guestfs.c:6749: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6755: var_deref_model: Passing null pointer "g" to function "guestfs_is_whole_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8293:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def512]
libguestfs-1.25.49/lua/lua-guestfs.c:11683: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11690: var_deref_model: Passing null pointer "g" to function "guestfs_set_uuid(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8390:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def513]
libguestfs-1.25.49/lua/lua-guestfs.c:6962: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6968: var_deref_model: Passing null pointer "g" to function "guestfs_journal_set_data_threshold(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8492:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def514]
libguestfs-1.25.49/lua/lua-guestfs.c:1102: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1110: var_deref_model: Passing null pointer "g" to function "guestfs_aug_setm(guestfs_h *, char const *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8584:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def515]
libguestfs-1.25.49/lua/lua-guestfs.c:1215: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1221: var_deref_model: Passing null pointer "g" to function "guestfs_blkdiscard(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-3.c:8776:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def516]
libguestfs-1.25.49/lua/lua-guestfs.c:5942: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5948: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rbool(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:42:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def517]
libguestfs-1.25.49/lua/lua-guestfs.c:6280: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6286: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstringlist(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:84:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def518]
libguestfs-1.25.49/lua/lua-guestfs.c:6302: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6307: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstringlisterr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:134:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def519]
libguestfs-1.25.49/lua/lua-guestfs.c:6108: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6114: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rhashtable(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:178:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def520]
libguestfs-1.25.49/lua/lua-guestfs.c:508: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:514: var_deref_model: Passing null pointer "g" to function "guestfs_add_cdrom(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:229:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def521]
libguestfs-1.25.49/lua/lua-guestfs.c:3548: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3553: var_deref_model: Passing null pointer "g" to function "guestfs_get_autosync(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:275:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def522]
libguestfs-1.25.49/lua/lua-guestfs.c:6674: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6679: var_deref_model: Passing null pointer "g" to function "guestfs_is_ready(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:309:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def523]
libguestfs-1.25.49/lua/lua-guestfs.c:6464: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6469: var_deref_model: Passing null pointer "g" to function "guestfs_is_busy(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:343:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def524]
libguestfs-1.25.49/lua/lua-guestfs.c:3933: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3938: var_deref_model: Passing null pointer "g" to function "guestfs_get_pid(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:377:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def525]
libguestfs-1.25.49/lua/lua-guestfs.c:4013: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4018: var_deref_model: Passing null pointer "g" to function "guestfs_get_selinux(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:411:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def526]
libguestfs-1.25.49/lua/lua-guestfs.c:5108: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5114: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_hostname(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:446:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def527]
libguestfs-1.25.49/lua/lua-guestfs.c:5085: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5091: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_format(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:488:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def528]
libguestfs-1.25.49/lua/lua-guestfs.c:5440: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5446: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_is_multipart(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:530:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def529]
libguestfs-1.25.49/lua/lua-guestfs.c:1788: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1794: var_deref_model: Passing null pointer "g" to function "guestfs_canonical_device_name(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:572:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def530]
libguestfs-1.25.49/lua/lua-guestfs.c:11973: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11978: var_deref_model: Passing null pointer "g" to function "guestfs_shutdown(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:613:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def531]
libguestfs-1.25.49/lua/lua-guestfs.c:10621: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10628: var_deref_model: Passing null pointer "g" to function "guestfs_readlinklist(guestfs_h *, char const *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:649:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def532]
libguestfs-1.25.49/lua/lua-guestfs.c:3764: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3770: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credential_challenge(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:714:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def533]
libguestfs-1.25.49/lua/lua-guestfs.c:11217: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11223: var_deref_model: Passing null pointer "g" to function "guestfs_set_cachedir(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:750:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def534]
libguestfs-1.25.49/lua/lua-guestfs.c:878: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:885: var_deref_model: Passing null pointer "g" to function "guestfs_aug_init(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:849:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def535]
libguestfs-1.25.49/lua/lua-guestfs.c:1078: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1085: var_deref_model: Passing null pointer "g" to function "guestfs_aug_set(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:947:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def536]
libguestfs-1.25.49/lua/lua-guestfs.c:902: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:910: var_deref_model: Passing null pointer "g" to function "guestfs_aug_insert(guestfs_h *, char const *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1051:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def537]
libguestfs-1.25.49/lua/lua-guestfs.c:1036: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1042: var_deref_model: Passing null pointer "g" to function "guestfs_aug_rm(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1156:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def538]
libguestfs-1.25.49/lua/lua-guestfs.c:947: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:952: var_deref_model: Passing null pointer "g" to function "guestfs_aug_load(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1250:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def539]
libguestfs-1.25.49/lua/lua-guestfs.c:12473: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12480: var_deref_model: Passing null pointer "g" to function "guestfs_tgz_out(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1337:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def540]
libguestfs-1.25.49/lua/lua-guestfs.c:9438: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9446: 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.25.49/src/actions-4.c:1447:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def541]
libguestfs-1.25.49/lua/lua-guestfs.c:11316: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11323: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2label(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1557:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def542]
libguestfs-1.25.49/lua/lua-guestfs.c:3720: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3726: var_deref_model: Passing null pointer "g" to function "guestfs_get_e2uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1660:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def543]
libguestfs-1.25.49/lua/lua-guestfs.c:4391: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4397: var_deref_model: Passing null pointer "g" to function "guestfs_hexdump(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1757:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def544]
libguestfs-1.25.49/lua/lua-guestfs.c:8169: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8176: var_deref_model: Passing null pointer "g" to function "guestfs_lvresize(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1854:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def545]
libguestfs-1.25.49/lua/lua-guestfs.c:11951: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11957: var_deref_model: Passing null pointer "g" to function "guestfs_sh_lines(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:1952:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def546]
libguestfs-1.25.49/lua/lua-guestfs.c:11048: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11054: var_deref_model: Passing null pointer "g" to function "guestfs_scrub_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2062:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def547]
libguestfs-1.25.49/lua/lua-guestfs.c:9115: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9124: var_deref_model: Passing null pointer "g" to function "guestfs_mknod_c(guestfs_h *, int, int, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2160:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def548]
libguestfs-1.25.49/lua/lua-guestfs.c:12696: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12702: var_deref_model: Passing null pointer "g" to function "guestfs_umask(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2262:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def549]
libguestfs-1.25.49/lua/lua-guestfs.c:7321: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7327: var_deref_model: Passing null pointer "g" to function "guestfs_lgetxattrs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2353:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def550]
libguestfs-1.25.49/lua/lua-guestfs.c:10916: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10922: var_deref_model: Passing null pointer "g" to function "guestfs_rmmountpoint(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2450:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def551]
libguestfs-1.25.49/lua/lua-guestfs.c:4296: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4303: var_deref_model: Passing null pointer "g" to function "guestfs_grepi(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2547:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def552]
libguestfs-1.25.49/lua/lua-guestfs.c:12213: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12219: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2664:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def553]
libguestfs-1.25.49/lua/lua-guestfs.c:8840: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8848: var_deref_model: Passing null pointer "g" to function "guestfs_mke2journal_U(guestfs_h *, int, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2761:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def554]
libguestfs-1.25.49/lua/lua-guestfs.c:8712: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8721: 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.25.49/src/actions-4.c:2868:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def555]
libguestfs-1.25.49/lua/lua-guestfs.c:1857: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1863: var_deref_model: Passing null pointer "g" to function "guestfs_case_sensitive_path(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:2980:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def556]
libguestfs-1.25.49/lua/lua-guestfs.c:10017: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10024: var_deref_model: Passing null pointer "g" to function "guestfs_part_init(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:3307:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def557]
libguestfs-1.25.49/lua/lua-guestfs.c:9825: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9834: 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.25.49/src/actions-4.c:3412:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def558]
libguestfs-1.25.49/lua/lua-guestfs.c:8146: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8153: var_deref_model: Passing null pointer "g" to function "guestfs_lvrename(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:3519:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def559]
libguestfs-1.25.49/lua/lua-guestfs.c:10450: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10456: var_deref_model: Passing null pointer "g" to function "guestfs_pvuuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:3622:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def560]
libguestfs-1.25.49/lua/lua-guestfs.c:8256: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8262: var_deref_model: Passing null pointer "g" to function "guestfs_lvuuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:3719:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def561]
libguestfs-1.25.49/lua/lua-guestfs.c:2394: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2402: 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.25.49/src/actions-4.c:3817:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def562]
libguestfs-1.25.49/lua/lua-guestfs.c:9945: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9952: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_mbr_id(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:3923:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def563]
libguestfs-1.25.49/lua/lua-guestfs.c:2558: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2566: var_deref_model: Passing null pointer "g" to function "guestfs_debug_upload(guestfs_h *, char const *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4023:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def564]
libguestfs-1.25.49/lua/lua-guestfs.c:7866: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7874: var_deref_model: Passing null pointer "g" to function "guestfs_luks_format(guestfs_h *, char const *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4146:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def565]
libguestfs-1.25.49/lua/lua-guestfs.c:3425: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3431: var_deref_model: Passing null pointer "g" to function "guestfs_findfs_uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4251:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def566]
libguestfs-1.25.49/lua/lua-guestfs.c:2810: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2819: 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.25.49/src/actions-4.c:4350:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def567]
libguestfs-1.25.49/lua/lua-guestfs.c:8041: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8047: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_canonical_lv_name(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4463:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def568]
libguestfs-1.25.49/lua/lua-guestfs.c:7406: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7411: var_deref_model: Passing null pointer "g" to function "guestfs_list_dm_devices(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4558:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def569]
libguestfs-1.25.49/lua/lua-guestfs.c:10185: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10191: var_deref_model: Passing null pointer "g" to function "guestfs_part_to_partnum(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4660:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def570]
libguestfs-1.25.49/lua/lua-guestfs.c:1258: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1264: var_deref_model: Passing null pointer "g" to function "guestfs_blkid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4757:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def571]
libguestfs-1.25.49/lua/lua-guestfs.c:13400: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13406: var_deref_model: Passing null pointer "g" to function "guestfs_wipefs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:4867:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def572]
libguestfs-1.25.49/lua/lua-guestfs.c:9694: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9708: 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.25.49/src/actions-4.c:4969:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def573]
libguestfs-1.25.49/lua/lua-guestfs.c:11262: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11277: 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.25.49/src/actions-4.c:5086:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def574]
libguestfs-1.25.49/lua/lua-guestfs.c:1766: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1773: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_snapshot(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:5203:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def575]
libguestfs-1.25.49/lua/lua-guestfs.c:1677: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1683: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_subvolume_create(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:5305:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def576]
libguestfs-1.25.49/lua/lua-guestfs.c:1743: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1750: 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.25.49/src/actions-4.c:5401:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def577]
libguestfs-1.25.49/lua/lua-guestfs.c:3474: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3496: 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.25.49/src/actions-4.c:5505:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def578]
libguestfs-1.25.49/lua/lua-guestfs.c:4478: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4484: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_children(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:5631:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def579]
libguestfs-1.25.49/lua/lua-guestfs.c:7469: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7474: var_deref_model: Passing null pointer "g" to function "guestfs_list_ldm_volumes(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:5816:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def580]
libguestfs-1.25.49/lua/lua-guestfs.c:7174: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7179: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_scan(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:5916:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def581]
libguestfs-1.25.49/lua/lua-guestfs.c:9969: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9976: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_name(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-4.c:6134:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def582]
libguestfs-1.25.49/lua/lua-guestfs.c:5562: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5600: 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.25.49/src/actions-5.c:58:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def583]
libguestfs-1.25.49/lua/lua-guestfs.c:6130: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6135: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rhashtableerr(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:413:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def584]
libguestfs-1.25.49/lua/lua-guestfs.c:3510: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3515: var_deref_model: Passing null pointer "g" to function "guestfs_get_append(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:456:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def585]
libguestfs-1.25.49/lua/lua-guestfs.c:6516: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6521: var_deref_model: Passing null pointer "g" to function "guestfs_is_config(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:484:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def586]
libguestfs-1.25.49/lua/lua-guestfs.c:3853: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3858: var_deref_model: Passing null pointer "g" to function "guestfs_get_memsize(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:518:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def587]
libguestfs-1.25.49/lua/lua-guestfs.c:11661: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11667: var_deref_model: Passing null pointer "g" to function "guestfs_set_trace(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:553:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def588]
libguestfs-1.25.49/lua/lua-guestfs.c:741: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:748: 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.25.49/src/actions-5.c:590:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def589]
libguestfs-1.25.49/lua/lua-guestfs.c:5169: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5175: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_major_version(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:643:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def590]
libguestfs-1.25.49/lua/lua-guestfs.c:11472: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11478: var_deref_model: Passing null pointer "g" to function "guestfs_set_network(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:685:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def591]
libguestfs-1.25.49/lua/lua-guestfs.c:5327: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5332: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_roots(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:725:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def592]
libguestfs-1.25.49/lua/lua-guestfs.c:11132: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11138: var_deref_model: Passing null pointer "g" to function "guestfs_set_attach_method(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:769:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def593]
libguestfs-1.25.49/lua/lua-guestfs.c:11619: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11625: var_deref_model: Passing null pointer "g" to function "guestfs_set_smp(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:816:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def594]
libguestfs-1.25.49/lua/lua-guestfs.c:2741: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2747: var_deref_model: Passing null pointer "g" to function "guestfs_disk_virtual_size(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:857:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def595]
libguestfs-1.25.49/lua/lua-guestfs.c:9800: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9806: var_deref_model: Passing null pointer "g" to function "guestfs_parse_environment_list(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:899:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def596]
libguestfs-1.25.49/lua/lua-guestfs.c:11640: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11646: var_deref_model: Passing null pointer "g" to function "guestfs_set_tmpdir(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:949:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def597]
libguestfs-1.25.49/lua/lua-guestfs.c:3953: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3958: var_deref_model: Passing null pointer "g" to function "guestfs_get_program(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:992:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def598]
libguestfs-1.25.49/lua/lua-guestfs.c:8234: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8239: var_deref_model: Passing null pointer "g" to function "guestfs_lvs_full(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1031:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def599]
libguestfs-1.25.49/lua/lua-guestfs.c:7993: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8001: var_deref_model: Passing null pointer "g" to function "guestfs_lvcreate(guestfs_h *, char const *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1121:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def600]
libguestfs-1.25.49/lua/lua-guestfs.c:11778: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11788: 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.25.49/src/actions-5.c:1229:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def601]
libguestfs-1.25.49/lua/lua-guestfs.c:12014: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12020: var_deref_model: Passing null pointer "g" to function "guestfs_stat(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1347:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def602]
libguestfs-1.25.49/lua/lua-guestfs.c:1477: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1483: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_setrw(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1444:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def603]
libguestfs-1.25.49/lua/lua-guestfs.c:1281: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1287: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_flushbufs(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1539:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def604]
libguestfs-1.25.49/lua/lua-guestfs.c:2785: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2792: var_deref_model: Passing null pointer "g" to function "guestfs_download(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1635:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def605]
libguestfs-1.25.49/lua/lua-guestfs.c:12450: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12457: var_deref_model: Passing null pointer "g" to function "guestfs_tgz_in(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1744:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def606]
libguestfs-1.25.49/lua/lua-guestfs.c:13187: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13193: var_deref_model: Passing null pointer "g" to function "guestfs_vgremove(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1863:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def607]
libguestfs-1.25.49/lua/lua-guestfs.c:10343: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10349: var_deref_model: Passing null pointer "g" to function "guestfs_pvremove(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:1958:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def608]
libguestfs-1.25.49/lua/lua-guestfs.c:11833: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11844: 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.25.49/src/actions-5.c:2058:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def609]
libguestfs-1.25.49/lua/lua-guestfs.c:11090: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11096: var_deref_model: Passing null pointer "g" to function "guestfs_scrub_freespace(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2168:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def610]
libguestfs-1.25.49/lua/lua-guestfs.c:13356: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13362: var_deref_model: Passing null pointer "g" to function "guestfs_wc_l(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2264:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def611]
libguestfs-1.25.49/lua/lua-guestfs.c:4367: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4374: var_deref_model: Passing null pointer "g" to function "guestfs_head_n(guestfs_h *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2362:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def612]
libguestfs-1.25.49/lua/lua-guestfs.c:9198: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9205: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_U(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2475:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def613]
libguestfs-1.25.49/lua/lua-guestfs.c:11805: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11812: var_deref_model: Passing null pointer "g" to function "guestfs_sfdiskM(guestfs_h *, char const *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2578:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def614]
libguestfs-1.25.49/lua/lua-guestfs.c:9510: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9515: var_deref_model: Passing null pointer "g" to function "guestfs_mountpoints(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2688:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def615]
libguestfs-1.25.49/lua/lua-guestfs.c:7580: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7587: var_deref_model: Passing null pointer "g" to function "guestfs_ln(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2790:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def616]
libguestfs-1.25.49/lua/lua-guestfs.c:7649: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7656: var_deref_model: Passing null pointer "g" to function "guestfs_ln_sf(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2893:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def617]
libguestfs-1.25.49/lua/lua-guestfs.c:12192: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12198: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:2995:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def618]
libguestfs-1.25.49/lua/lua-guestfs.c:12108: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12114: var_deref_model: Passing null pointer "g" to function "guestfs_swapoff_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3090:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def619]
libguestfs-1.25.49/lua/lua-guestfs.c:12255: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12261: var_deref_model: Passing null pointer "g" to function "guestfs_swapon_uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3185:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def620]
libguestfs-1.25.49/lua/lua-guestfs.c:4889: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4894: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_close(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3278:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def621]
libguestfs-1.25.49/lua/lua-guestfs.c:8933: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8941: var_deref_model: Passing null pointer "g" to function "guestfs_mkfs_b(guestfs_h *, char const *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3366:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def622]
libguestfs-1.25.49/lua/lua-guestfs.c:3380: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3387: var_deref_model: Passing null pointer "g" to function "guestfs_find0(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3471:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def623]
libguestfs-1.25.49/lua/lua-guestfs.c:12538: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12545: var_deref_model: Passing null pointer "g" to function "guestfs_truncate_size(guestfs_h *, char const *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3580:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def624]
libguestfs-1.25.49/lua/lua-guestfs.c:10139: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10147: 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.25.49/src/actions-5.c:3679:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def625]
libguestfs-1.25.49/lua/lua-guestfs.c:4819: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4826: 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.25.49/src/actions-5.c:3786:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def626]
libguestfs-1.25.49/lua/lua-guestfs.c:13117: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13123: var_deref_model: Passing null pointer "g" to function "guestfs_vglvuuids(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:3903:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def627]
libguestfs-1.25.49/lua/lua-guestfs.c:13770: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13776: var_deref_model: Passing null pointer "g" to function "guestfs_zero_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4013:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def628]
libguestfs-1.25.49/lua/lua-guestfs.c:12651: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12658: var_deref_model: Passing null pointer "g" to function "guestfs_txz_in(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4109:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def629]
libguestfs-1.25.49/lua/lua-guestfs.c:9896: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9903: var_deref_model: Passing null pointer "g" to function "guestfs_part_get_bootable(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4230:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def630]
libguestfs-1.25.49/lua/lua-guestfs.c:3333: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3341: var_deref_model: Passing null pointer "g" to function "guestfs_fill_pattern(guestfs_h *, char const *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4330:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def631]
libguestfs-1.25.49/lua/lua-guestfs.c:8102: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8108: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_set_filter(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4548:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def632]
libguestfs-1.25.49/lua/lua-guestfs.c:7819: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7828: 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.25.49/src/actions-5.c:4655:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def633]
libguestfs-1.25.49/lua/lua-guestfs.c:6435: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6449: var_deref_model: Passing null pointer "g" to function "guestfs_is_blockdev_opts_argv(guestfs_h *, char const *, struct guestfs_is_blockdev_opts_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4774:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def634]
libguestfs-1.25.49/lua/lua-guestfs.c:6571: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6585: var_deref_model: Passing null pointer "g" to function "guestfs_is_fifo_opts_argv(guestfs_h *, char const *, struct guestfs_is_fifo_opts_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:4892:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def635]
libguestfs-1.25.49/lua/lua-guestfs.c:8889: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8916: 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.25.49/src/actions-5.c:5010:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def636]
libguestfs-1.25.49/lua/lua-guestfs.c:2305: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2332: 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.25.49/src/actions-5.c:5278:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def637]
libguestfs-1.25.49/lua/lua-guestfs.c:2350: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2377: 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.25.49/src/actions-5.c:5426:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def638]
libguestfs-1.25.49/lua/lua-guestfs.c:7490: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7495: var_deref_model: Passing null pointer "g" to function "guestfs_list_md_devices(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:5565:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def639]
libguestfs-1.25.49/lua/lua-guestfs.c:9621: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9628: var_deref_model: Passing null pointer "g" to function "guestfs_ntfsclone_in(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:5667:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def640]
libguestfs-1.25.49/lua/lua-guestfs.c:13791: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13797: var_deref_model: Passing null pointer "g" to function "guestfs_zero_free_space(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:5786:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def641]
libguestfs-1.25.49/lua/lua-guestfs.c:8018: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8026: var_deref_model: Passing null pointer "g" to function "guestfs_lvcreate_free(guestfs_h *, char const *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:5883:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def642]
libguestfs-1.25.49/lua/lua-guestfs.c:6838: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6844: var_deref_model: Passing null pointer "g" to function "guestfs_isoinfo_device(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:5988:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def643]
libguestfs-1.25.49/lua/lua-guestfs.c:8398: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8404: var_deref_model: Passing null pointer "g" to function "guestfs_md_stat(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6086:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def644]
libguestfs-1.25.49/lua/lua-guestfs.c:1546: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1552: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_filesystem_balance(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6183:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def645]
libguestfs-1.25.49/lua/lua-guestfs.c:1499: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1506: var_deref_model: Passing null pointer "g" to function "guestfs_btrfs_device_add(guestfs_h *, char * const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6279:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def646]
libguestfs-1.25.49/lua/lua-guestfs.c:9575: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9580: var_deref_model: Passing null pointer "g" to function "guestfs_nr_devices(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6389:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def647]
libguestfs-1.25.49/lua/lua-guestfs.c:13608: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13614: var_deref_model: Passing null pointer "g" to function "guestfs_xfs_info(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6477:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def648]
libguestfs-1.25.49/lua/lua-guestfs.c:13053: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13059: var_deref_model: Passing null pointer "g" to function "guestfs_vgchange_uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6574:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def649]
libguestfs-1.25.49/lua/lua-guestfs.c:13551: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13593: 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.25.49/src/actions-5.c:6676:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def650]
libguestfs-1.25.49/lua/lua-guestfs.c:4433: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4439: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_commit(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6841:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def651]
libguestfs-1.25.49/lua/lua-guestfs.c:4501: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4507: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_delete_child(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:6933:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def652]
libguestfs-1.25.49/lua/lua-guestfs.c:7385: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7390: var_deref_model: Passing null pointer "g" to function "guestfs_list_disk_labels(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:7223:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def653]
libguestfs-1.25.49/lua/lua-guestfs.c:485: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:493: 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.25.49/src/actions-5.c:7326:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def654]
libguestfs-1.25.49/lua/lua-guestfs.c:1835: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1842: var_deref_model: Passing null pointer "g" to function "guestfs_cap_set_file(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:7436:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def655]
libguestfs-1.25.49/lua/lua-guestfs.c:7246: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7253: var_deref_model: Passing null pointer "g" to function "guestfs_ldmtool_volume_partitions(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:7540:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def656]
libguestfs-1.25.49/lua/lua-guestfs.c:10089: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10097: 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.25.49/src/actions-5.c:7659:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def657]
libguestfs-1.25.49/lua/lua-guestfs.c:3120: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3126: var_deref_model: Passing null pointer "g" to function "guestfs_feature_available(guestfs_h *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:7770:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def658]
libguestfs-1.25.49/lua/lua-guestfs.c:6920: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6925: var_deref_model: Passing null pointer "g" to function "guestfs_journal_next(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:7874:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def659]
libguestfs-1.25.49/lua/lua-guestfs.c:6983: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6989: var_deref_model: Passing null pointer "g" to function "guestfs_journal_skip(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-5.c:7962:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def660]
libguestfs-1.25.49/lua/lua-guestfs.c:6152: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6158: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rint(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:42:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def661]
libguestfs-1.25.49/lua/lua-guestfs.c:6195: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6200: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rint64err(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:83:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def662]
libguestfs-1.25.49/lua/lua-guestfs.c:6066: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6072: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rconststring(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:118:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def663]
libguestfs-1.25.49/lua/lua-guestfs.c:6324: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6330: var_deref_model: Passing null pointer "g" to function "guestfs_internal_test_rstruct(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:160:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def664]
libguestfs-1.25.49/lua/lua-guestfs.c:13314: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13319: var_deref_model: Passing null pointer "g" to function "guestfs_wait_ready(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:201:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def665]
libguestfs-1.25.49/lua/lua-guestfs.c:3742: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3747: var_deref_model: Passing null pointer "g" to function "guestfs_get_hv(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:235:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def666]
libguestfs-1.25.49/lua/lua-guestfs.c:3631: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3636: var_deref_model: Passing null pointer "g" to function "guestfs_get_direct(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:269:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def667]
libguestfs-1.25.49/lua/lua-guestfs.c:5282: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5288: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_product_name(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:304:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def668]
libguestfs-1.25.49/lua/lua-guestfs.c:5213: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5219: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_mountpoints(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:346:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def669]
libguestfs-1.25.49/lua/lua-guestfs.c:5259: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5265: var_deref_model: Passing null pointer "g" to function "guestfs_inspect_get_package_management(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:397:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def670]
libguestfs-1.25.49/lua/lua-guestfs.c:8304: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8309: var_deref_model: Passing null pointer "g" to function "guestfs_max_disks(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:438:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def671]
libguestfs-1.25.49/lua/lua-guestfs.c:3356: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3362: var_deref_model: Passing null pointer "g" to function "guestfs_find(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:473:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def672]
libguestfs-1.25.49/lua/lua-guestfs.c:10551: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10557: var_deref_model: Passing null pointer "g" to function "guestfs_read_lines(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:524:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def673]
libguestfs-1.25.49/lua/lua-guestfs.c:2696: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2702: var_deref_model: Passing null pointer "g" to function "guestfs_disk_format(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:575:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def674]
libguestfs-1.25.49/lua/lua-guestfs.c:3832: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3837: var_deref_model: Passing null pointer "g" to function "guestfs_get_libvirt_requested_credentials(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:616:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def675]
libguestfs-1.25.49/lua/lua-guestfs.c:12275: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12280: var_deref_model: Passing null pointer "g" to function "guestfs_sync(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:663:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def676]
libguestfs-1.25.49/lua/lua-guestfs.c:8213: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8218: var_deref_model: Passing null pointer "g" to function "guestfs_lvs(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:748:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def677]
libguestfs-1.25.49/lua/lua-guestfs.c:1014: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1021: var_deref_model: Passing null pointer "g" to function "guestfs_aug_mv(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:850:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def678]
libguestfs-1.25.49/lua/lua-guestfs.c:13094: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13101: var_deref_model: Passing null pointer "g" to function "guestfs_vgcreate(guestfs_h *, char const *, char * const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:953:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def679]
libguestfs-1.25.49/lua/lua-guestfs.c:3193: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3199: var_deref_model: Passing null pointer "g" to function "guestfs_file(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1065:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def680]
libguestfs-1.25.49/lua/lua-guestfs.c:1324: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1330: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getro(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1162:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def681]
libguestfs-1.25.49/lua/lua-guestfs.c:1302: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1308: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_getbsz(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1259:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def682]
libguestfs-1.25.49/lua/lua-guestfs.c:1434: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1441: var_deref_model: Passing null pointer "g" to function "guestfs_blockdev_setbsz(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1356:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def683]
libguestfs-1.25.49/lua/lua-guestfs.c:12410: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12433: 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.25.49/src/actions-6.c:1461:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def684]
libguestfs-1.25.49/lua/lua-guestfs.c:9487: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9496: 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.25.49/src/actions-6.c:1623:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def685]
libguestfs-1.25.49/lua/lua-guestfs.c:2441: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2448: var_deref_model: Passing null pointer "g" to function "guestfs_cp_a(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1740:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def686]
libguestfs-1.25.49/lua/lua-guestfs.c:12084: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12091: var_deref_model: Passing null pointer "g" to function "guestfs_strings_e(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1844:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def687]
libguestfs-1.25.49/lua/lua-guestfs.c:11882: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11888: var_deref_model: Passing null pointer "g" to function "guestfs_sfdisk_kernel_geometry(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:1962:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def688]
libguestfs-1.25.49/lua/lua-guestfs.c:11993: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11999: var_deref_model: Passing null pointer "g" to function "guestfs_sleep(guestfs_h *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2058:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def689]
libguestfs-1.25.49/lua/lua-guestfs.c:13334: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13340: var_deref_model: Passing null pointer "g" to function "guestfs_wc_c(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2148:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def690]
libguestfs-1.25.49/lua/lua-guestfs.c:4343: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4349: var_deref_model: Passing null pointer "g" to function "guestfs_head(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2245:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def691]
libguestfs-1.25.49/lua/lua-guestfs.c:12350: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12357: var_deref_model: Passing null pointer "g" to function "guestfs_tail_n(guestfs_h *, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2357:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def692]
libguestfs-1.25.49/lua/lua-guestfs.c:2602: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2607: var_deref_model: Passing null pointer "g" to function "guestfs_df(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2468:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def693]
libguestfs-1.25.49/lua/lua-guestfs.c:9414: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9421: var_deref_model: Passing null pointer "g" to function "guestfs_mount_loop(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2556:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def694]
libguestfs-1.25.49/lua/lua-guestfs.c:9141: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9159: 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.25.49/src/actions-6.c:2665:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def695]
libguestfs-1.25.49/lua/lua-guestfs.c:9175: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9182: var_deref_model: Passing null pointer "g" to function "guestfs_mkswap_L(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2795:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def696]
libguestfs-1.25.49/lua/lua-guestfs.c:10722: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10729: var_deref_model: Passing null pointer "g" to function "guestfs_removexattr(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:2898:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def697]
libguestfs-1.25.49/lua/lua-guestfs.c:3144: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3151: var_deref_model: Passing null pointer "g" to function "guestfs_fgrep(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3002:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def698]
libguestfs-1.25.49/lua/lua-guestfs.c:2983: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:2990: var_deref_model: Passing null pointer "g" to function "guestfs_egrepi(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3121:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def699]
libguestfs-1.25.49/lua/lua-guestfs.c:13700: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13707: var_deref_model: Passing null pointer "g" to function "guestfs_zegrep(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3240:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def700]
libguestfs-1.25.49/lua/lua-guestfs.c:3075: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3082: var_deref_model: Passing null pointer "g" to function "guestfs_fallocate(guestfs_h *, char const *, int)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3358:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def701]
libguestfs-1.25.49/lua/lua-guestfs.c:4950: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4955: var_deref_model: Passing null pointer "g" to function "guestfs_inotify_read(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3454:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def702]
libguestfs-1.25.49/lua/lua-guestfs.c:8815: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8823: var_deref_model: Passing null pointer "g" to function "guestfs_mke2journal_L(guestfs_h *, int, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3544:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def703]
libguestfs-1.25.49/lua/lua-guestfs.c:12962: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12968: var_deref_model: Passing null pointer "g" to function "guestfs_vfs_type(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3649:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def704]
libguestfs-1.25.49/lua/lua-guestfs.c:3285: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3293: var_deref_model: Passing null pointer "g" to function "guestfs_fill(guestfs_h *, int, int, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3875:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def705]
libguestfs-1.25.49/lua/lua-guestfs.c:3239: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3245: var_deref_model: Passing null pointer "g" to function "guestfs_filesize(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:3975:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def706]
libguestfs-1.25.49/lua/lua-guestfs.c:10114: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10122: 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.25.49/src/actions-6.c:4073:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def707]
libguestfs-1.25.49/lua/lua-guestfs.c:1955: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1963: 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.25.49/src/actions-6.c:4174:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def708]
libguestfs-1.25.49/lua/lua-guestfs.c:10810: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10817: var_deref_model: Passing null pointer "g" to function "guestfs_resize2fs_size(guestfs_h *, char const *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:4290:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def709]
libguestfs-1.25.49/lua/lua-guestfs.c:10386: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10393: var_deref_model: Passing null pointer "g" to function "guestfs_pvresize_size(guestfs_h *, char const *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:4388:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def710]
libguestfs-1.25.49/lua/lua-guestfs.c:1147: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:1152: var_deref_model: Passing null pointer "g" to function "guestfs_available_all_groups(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:4484:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def711]
libguestfs-1.25.49/lua/lua-guestfs.c:3098: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3105: var_deref_model: Passing null pointer "g" to function "guestfs_fallocate64(guestfs_h *, char const *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:4586:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def712]
libguestfs-1.25.49/lua/lua-guestfs.c:8063: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8068: var_deref_model: Passing null pointer "g" to function "guestfs_lvm_clear_filter(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:4681:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def713]
libguestfs-1.25.49/lua/lua-guestfs.c:7892: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7901: 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.25.49/src/actions-6.c:4770:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def714]
libguestfs-1.25.49/lua/lua-guestfs.c:10257: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10265: 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.25.49/src/actions-6.c:4885:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def715]
libguestfs-1.25.49/lua/lua-guestfs.c:7297: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7304: var_deref_model: Passing null pointer "g" to function "guestfs_lgetxattr(guestfs_h *, char const *, char const *, size_t *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5001:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def716]
libguestfs-1.25.49/lua/lua-guestfs.c:7343: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7348: var_deref_model: Passing null pointer "g" to function "guestfs_list_9p(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5200:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def717]
libguestfs-1.25.49/lua/lua-guestfs.c:8375: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8381: var_deref_model: Passing null pointer "g" to function "guestfs_md_detail(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5302:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def718]
libguestfs-1.25.49/lua/lua-guestfs.c:11383: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11390: var_deref_model: Passing null pointer "g" to function "guestfs_set_label(guestfs_h *, char const *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5413:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def719]
libguestfs-1.25.49/lua/lua-guestfs.c:6815: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6821: var_deref_model: Passing null pointer "g" to function "guestfs_isoinfo(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5516:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def720]
libguestfs-1.25.49/lua/lua-guestfs.c:11293: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11300: var_deref_model: Passing null pointer "g" to function "guestfs_set_e2generation(guestfs_h *, char const *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5614:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def721]
libguestfs-1.25.49/lua/lua-guestfs.c:3261: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:3267: var_deref_model: Passing null pointer "g" to function "guestfs_filesystem_available(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5712:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def722]
libguestfs-1.25.49/lua/lua-guestfs.c:10282: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10288: var_deref_model: Passing null pointer "g" to function "guestfs_pvchange_uuid(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5808:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def723]
libguestfs-1.25.49/lua/lua-guestfs.c:10302: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10307: var_deref_model: Passing null pointer "g" to function "guestfs_pvchange_uuid_all(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:5901:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def724]
libguestfs-1.25.49/lua/lua-guestfs.c:11014: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:11033: 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.25.49/src/actions-6.c:5995:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def725]
libguestfs-1.25.49/lua/lua-guestfs.c:4570: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4576: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_name(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:6120:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def726]
libguestfs-1.25.49/lua/lua-guestfs.c:4643: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:4649: var_deref_model: Passing null pointer "g" to function "guestfs_hivex_node_values(guestfs_h *, int64_t)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:6211:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def727]
libguestfs-1.25.49/lua/lua-guestfs.c:10853: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10859: var_deref_model: Passing null pointer "g" to function "guestfs_rm_f(guestfs_h *, char const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:6302:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def728]
libguestfs-1.25.49/lua/lua-guestfs.c:9243: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:9257: 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.25.49/src/actions-6.c:6405:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def729]
libguestfs-1.25.49/lua/lua-guestfs.c:7448: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:7453: var_deref_model: Passing null pointer "g" to function "guestfs_list_ldm_partitions(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:6520:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def730]
libguestfs-1.25.49/lua/lua-guestfs.c:10671: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:10685: var_deref_model: Passing null pointer "g" to function "guestfs_remount_argv(guestfs_h *, char const *, struct guestfs_remount_argv const *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:6726:18: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def731]
libguestfs-1.25.49/lua/lua-guestfs.c:6860: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:6865: var_deref_model: Passing null pointer "g" to function "guestfs_journal_close(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/actions-6.c:6833:18: deref_parm: Directly dereferencing parameter "g".

Error: RESOURCE_LEAK (CWE-772): [#def732]
libguestfs-1.25.49/src/drives.c:752: alloc_fn: Storage is returned from allocation function "guestfs___safe_calloc(guestfs_h *, size_t, size_t)".
libguestfs-1.25.49/src/alloc.c:75:3: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)".
libguestfs-1.25.49/src/alloc.c:75:3: var_assign: Assigning: "p" = "calloc(n, s)".
libguestfs-1.25.49/src/alloc.c:78:3: return_alloc: Returning allocated memory "p".
libguestfs-1.25.49/src/drives.c:752: var_assign: Assigning: "servers" = storage returned from "guestfs___safe_calloc(g, n, 24UL)".
libguestfs-1.25.49/src/drives.c:755: noescape: Resource "servers + i" is not freed or pointed-to in function "parse_one_server(guestfs_h *, char const *, struct drive_server *)".
libguestfs-1.25.49/src/drives.c:683:74: noescape: "parse_one_server(guestfs_h *, char const *, struct drive_server *)" does not free or save its pointer parameter "ret".
libguestfs-1.25.49/src/drives.c:758: leaked_storage: Variable "servers" going out of scope leaks the storage it points to.

Error: FORWARD_NULL (CWE-476): [#def733]
libguestfs-1.25.49/lua/lua-guestfs.c:591: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:648: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it.
libguestfs-1.25.49/lua/lua-guestfs.c:253:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g".
libguestfs-1.25.49/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def734]
libguestfs-1.25.49/lua/lua-guestfs.c:5618: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:5881: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it.
libguestfs-1.25.49/lua/lua-guestfs.c:253:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g".
libguestfs-1.25.49/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def735]
libguestfs-1.25.49/lua/lua-guestfs.c:8532: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:8696: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it.
libguestfs-1.25.49/lua/lua-guestfs.c:253:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g".
libguestfs-1.25.49/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def736]
libguestfs-1.25.49/lua/lua-guestfs.c:12562: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12614: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it.
libguestfs-1.25.49/lua/lua-guestfs.c:253:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g".
libguestfs-1.25.49/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g".

Error: FORWARD_NULL (CWE-476): [#def737]
libguestfs-1.25.49/lua/lua-guestfs.c:13633: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:13685: var_deref_model: Passing null pointer "g" to function "last_error(lua_State *, guestfs_h *)", which dereferences it.
libguestfs-1.25.49/lua/lua-guestfs.c:253:3: deref_parm_in_call: Function "guestfs_last_error(guestfs_h *)" dereferences "g".
libguestfs-1.25.49/src/errors.c:35:3: deref_parm: Directly dereferencing parameter "g".

Error: CHECKED_RETURN (CWE-252): [#def738]
libguestfs-1.25.49/src/handle.c:211: 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.25.49/erlang/erl-guestfs.c:8586: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8587: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:20037: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/fish/cmds.c:20038: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11834: example_assign: Example 3: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11839: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11499: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/lua/lua-guestfs.c:11500: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16106: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_path(g, searchpath)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16108: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/src/handle.c:211: unchecked_value: No check of the return value of "guestfs_set_path(g, str)".

Error: CHECKED_RETURN (CWE-252): [#def739]
libguestfs-1.25.49/src/handle.c:224: 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.25.49/erlang/erl-guestfs.c:8331: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_append(g, append)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8332: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:19490: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_append(g, append)".
libguestfs-1.25.49/fish/cmds.c:19491: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11466: example_assign: Example 3: Assigning: "r" = return value from "guestfs_set_append(g, append)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11471: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11117: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_append(g, append)".
libguestfs-1.25.49/lua/lua-guestfs.c:11118: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:15586: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_append(g, append)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:15588: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/src/handle.c:224: unchecked_value: No check of the return value of "guestfs_set_append(g, str)".

Error: CHECKED_RETURN (CWE-252): [#def740]
libguestfs-1.25.49/src/handle.c:232: 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.25.49/erlang/erl-guestfs.c:8556: example_assign: Example 1: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)".
libguestfs-1.25.49/erlang/erl-guestfs.c:8557: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:19980: example_assign: Example 2: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)".
libguestfs-1.25.49/fish/cmds.c:19981: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11798: example_assign: Example 3: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:11801: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:11457: example_assign: Example 4: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)".
libguestfs-1.25.49/lua/lua-guestfs.c:11458: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16048: example_assign: Example 5: Assigning: "r" = return value from "guestfs_set_memsize(g, memsize)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:16049: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/src/handle.c:232: unchecked_value: No check of the return value of "guestfs_set_memsize(g, memsize)".

Error: MISSING_BREAK (CWE-484): [#def741]
libguestfs-1.25.49/src/inspect-fs-unix.c:1173: unterminated_case: This case (value -1) is not terminated by a 'break' statement.
libguestfs-1.25.49/src/inspect-fs-unix.c:1176: fallthrough: The above case falls through to this one.

Error: CHECKED_RETURN (CWE-252): [#def742]
libguestfs-1.25.49/src/inspect-fs-unix.c:1606: check_return: Calling function "guestfs_aug_close(guestfs_h *)" without checking return value (as is done elsewhere 9 out of 10 times).
libguestfs-1.25.49/erlang/erl-guestfs.c:919: example_assign: Example 1: Assigning: "r" = return value from "guestfs_aug_close(g)".
libguestfs-1.25.49/erlang/erl-guestfs.c:920: example_checked: Example 1 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/fish/cmds.c:5296: example_assign: Example 2: Assigning: "r" = return value from "guestfs_aug_close(g)".
libguestfs-1.25.49/fish/cmds.c:5297: example_checked: Example 2 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:580: example_assign: Example 3: Assigning: "r" = return value from "guestfs_aug_close(g)".
libguestfs-1.25.49/java/com_redhat_et_libguestfs_GuestFS.c:583: example_checked: Example 3 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/lua/lua-guestfs.c:788: example_assign: Example 4: Assigning: "r" = return value from "guestfs_aug_close(g)".
libguestfs-1.25.49/lua/lua-guestfs.c:789: example_checked: Example 4 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:1404: example_assign: Example 5: Assigning: "r" = return value from "guestfs_aug_close(g)".
libguestfs-1.25.49/ocaml/guestfs-c-actions.c:1406: example_checked: Example 5 (cont.): "r" has its value checked in "r == -1".
libguestfs-1.25.49/src/inspect-fs-unix.c:1606: unchecked_value: No check of the return value of "guestfs_aug_close(g)".

Error: RESOURCE_LEAK (CWE-772): [#def743]
libguestfs-1.25.49/src/launch-direct.c:710: open_fn: Returning handle opened by function "dup(int)".
libguestfs-1.25.49/src/launch-direct.c:710: leaked_handle: Ignoring handle opened by "dup(sv[1])" leaks it.

Error: RESOURCE_LEAK (CWE-772): [#def744]
libguestfs-1.25.49/src/launch-direct.c:716: open_fn: Returning handle opened by function "dup(int)".
libguestfs-1.25.49/src/launch-direct.c:716: leaked_handle: Ignoring handle opened by "dup(sv[1])" leaks it.

Error: RESOURCE_LEAK (CWE-772): [#def745]
libguestfs-1.25.49/src/launch-direct.c:724: open_fn: Returning handle opened by function "dup(int)".
libguestfs-1.25.49/src/launch-direct.c:724: leaked_handle: Ignoring handle opened by "dup(sv[1])" leaks it.

Error: RESOURCE_LEAK (CWE-772): [#def746]
libguestfs-1.25.49/src/launch-uml.c:321: open_fn: Returning handle opened by function "dup(int)".
libguestfs-1.25.49/src/launch-uml.c:321: leaked_handle: Ignoring handle opened by "dup(csv[1])" leaks it.

Error: RESOURCE_LEAK (CWE-772): [#def747]
libguestfs-1.25.49/src/launch-uml.c:327: open_fn: Returning handle opened by function "dup(int)".
libguestfs-1.25.49/src/launch-uml.c:327: leaked_handle: Ignoring handle opened by "dup(csv[1])" leaks it.

Error: RESOURCE_LEAK (CWE-772): [#def748]
libguestfs-1.25.49/src/launch-uml.c:332: open_fn: Returning handle opened by function "dup(int)".
libguestfs-1.25.49/src/launch-uml.c:332: leaked_handle: Ignoring handle opened by "dup(csv[1])" leaks it.

Error: FORWARD_NULL (CWE-476): [#def749]
libguestfs-1.25.49/src/libvirt-domain.c:68: assign_zero: Assigning: "optargs2.readonlydisk" = "NULL".
libguestfs-1.25.49/src/libvirt-domain.c:147: 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.25.49/src/libvirt-domain.c:201:5: deref_parm_in_call: Function "__coverity_strcmp(char const *, char const *)" dereferences "optargs->readonlydisk".

Error: FORWARD_NULL (CWE-476): [#def750]
libguestfs-1.25.49/lua/lua-guestfs.c:12848: var_compare_op: Comparing "g" to null implies that "g" might be null.
libguestfs-1.25.49/lua/lua-guestfs.c:12853: var_deref_model: Passing null pointer "g" to function "guestfs_user_cancel(guestfs_h *)", which dereferences it.
libguestfs-1.25.49/src/proto.c:875:3: deref_parm: Directly dereferencing parameter "g".

Scan Properties

analyzercoverity
analyzer-args--wait-for-license -co BAD_FREE:allow_first_field:true
analyzer-versionCoverity Static Analysis for C/C++ version 6.6.2 on Linux 2.6.32-279.el6.x86_64 x86_64\nInternal version numbers: e8c6bad8ec p-eureka-push-15003.350
compilation-unit-count518
compilation-unit-ratio76
hostcov01.lab.eng.brq.redhat.com
lines-processed476831
mock-configfedora-rawhide-x86_64
project-namelibguestfs-1.25.49-1.fc21
time-created2014-03-26 20:07:42
time-elapsed-analysis00:10:21
time-finished2014-03-26 20:52:03
toolcsmock
tool-args'fedora-rawhide-x86_64' '/tmp/covscan_bbcqFy/libguestfs-1.25.49-1.fc21.src.rpm'
tool-versioncsmock-1.0.5.20140320.071335.gfbf6106-1.el6.noarch csdiff-1.0.4-1.el6.x86_64