Possible bug in file gi/pygi-argument.c line 158
While experimenting with a novel static analysis technique in CodeSonar, we noticed the following potential problem at the next location:
FilePath: gi/pygi-argument.c Function: _pygi_g_registered_type_info_check_object Line number: 158
It looks possible that at the indicated line, type_name_expected can refer to the literal "type" set at line 129, resulting in undefined behaviour.
Thanks, Petru-Florin Mihancea