Skip to content

Null deref coverity finding #705

Closed
@trufae

Description

@trufae


________________________________________________________________________________________________________
*** CID [1565744](tel:1565744):  Null pointer dereferences  (FORWARD_NULL)
/shlr/qjs/src/quickjs.c: 40918 in js_iterator_helper_next()
40912             break;
40913         default:
40914             abort();
40915         }
40916     
40917     done:
   CID [1565744](tel:1565744):  Null pointer dereferences  (FORWARD_NULL)
   Dereferencing null pointer "it".
40918         it->done = magic == GEN_MAGIC_NEXT ? *pdone : TRUE;
40919         it->executing = FALSE;
40920         return ret;
40921     fail:
40922         if (it) {
40923             /* close the iterator object, preserving pending exception */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions