Skip to content

gobject: Add a missing NULL check for the return from lookup_type_node_I()

Philip Withnall requested to merge pwithnall/glib:coverity-iface-null into main

This can cause a NULL dereference on the next line if there is no TypeNode for iface_type, for example if iface_type == G_TYPE_INVALID.

Unlikely, but possible since this API is public.

Spotted by Coverity.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Coverity CID: #1501602

Merge request reports