Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4468:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17849:1: enter_function: entry to ‘_wrap_SolvFp_fileno’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17851:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17856:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17859:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17859:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_SolvFp_fileno’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17859:10: return_function: returning to ‘_wrap_SolvFp_fileno’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17860:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17863:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17863:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17864:12: call_function: inlined call to ‘SolvFp_fileno’ from ‘_wrap_SolvFp_fileno’ # 4466| } # 4467| SWIGINTERN int SolvFp_fileno(SolvFp *self){ # 4468|-> return self->fp ? fileno(self->fp) : -1; # 4469| } # 4470| SWIGINTERN int SolvFp_dup(SolvFp *self){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4471:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17881:1: enter_function: entry to ‘_wrap_SolvFp_dup’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17883:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17888:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17891:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17891:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_SolvFp_dup’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17891:10: return_function: returning to ‘_wrap_SolvFp_dup’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17892:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17895:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17895:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17896:12: call_function: calling ‘SolvFp_dup’ from ‘_wrap_SolvFp_dup’ # 4469| } # 4470| SWIGINTERN int SolvFp_dup(SolvFp *self){ # 4471|-> return self->fp ? dup(fileno(self->fp)) : -1; # 4472| } # 4473| SWIGINTERN bool SolvFp_write(SolvFp *self,unsigned char const *str,size_t len){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4474:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17905:1: enter_function: entry to ‘_wrap_SolvFp_write’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17909:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17918:6: branch_false: following ‘false’ branch (when ‘argc == 1’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17921:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17921:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_SolvFp_write’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17921:10: return_function: returning to ‘_wrap_SolvFp_write’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17922:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17925:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17925:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17926:10: call_function: calling ‘SWIG_AsCharPtrAndSize’ from ‘_wrap_SolvFp_write’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17926:10: return_function: returning to ‘_wrap_SolvFp_write’ from ‘SWIG_AsCharPtrAndSize’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17930:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17935:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17936:12: call_function: inlined call to ‘SolvFp_write’ from ‘_wrap_SolvFp_write’ # 4472| } # 4473| SWIGINTERN bool SolvFp_write(SolvFp *self,unsigned char const *str,size_t len){ # 4474|-> return fwrite(str, len, 1, self->fp) == 1; # 4475| } # 4476| SWIGINTERN bool SolvFp_flush(SolvFp *self){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4477:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17947:1: enter_function: entry to ‘_wrap_SolvFp_flush’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17949:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17954:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17957:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17957:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_SolvFp_flush’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17957:10: return_function: returning to ‘_wrap_SolvFp_flush’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17958:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17961:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17961:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17962:12: call_function: calling ‘SolvFp_flush’ from ‘_wrap_SolvFp_flush’ # 4475| } # 4476| SWIGINTERN bool SolvFp_flush(SolvFp *self){ # 4477|-> if (!self->fp) # 4478| return 1; # 4479| return fflush(self->fp) == 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4483:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17971:1: enter_function: entry to ‘_wrap_SolvFp_close’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17973:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17978:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17981:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17981:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_SolvFp_close’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17981:10: return_function: returning to ‘_wrap_SolvFp_close’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17982:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17985:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17985:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17986:12: call_function: calling ‘SolvFp_close’ from ‘_wrap_SolvFp_close’ # 4481| SWIGINTERN bool SolvFp_close(SolvFp *self){ # 4482| bool ret; # 4483|-> if (!self->fp) # 4484| return 1; # 4485| ret = fclose(self->fp) == 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4490:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17995:1: enter_function: entry to ‘_wrap_SolvFp_cloexec’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:17998:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18003:6: branch_false: following ‘false’ branch (when ‘argc == 1’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18006:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18006:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_SolvFp_cloexec’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18006:10: return_function: returning to ‘_wrap_SolvFp_cloexec’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18007:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18010:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18010:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18011:12: call_function: calling ‘SWIG_AsVal_bool’ from ‘_wrap_SolvFp_cloexec’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18011:12: return_function: returning to ‘_wrap_SolvFp_cloexec’ from ‘SWIG_AsVal_bool’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18012:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18015:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18016:3: call_function: calling ‘SolvFp_cloexec’ from ‘_wrap_SolvFp_cloexec’ # 4488| } # 4489| SWIGINTERN void SolvFp_cloexec(SolvFp *self,bool state){ # 4490|-> if (!self->fp || fileno(self->fp) == -1) # 4491| return; # 4492| solv_setcloexec(fileno(self->fp), state); Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4532:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18208:1: enter_function: entry to ‘_wrap_Problem_findproblemrule’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18210:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18215:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18218:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18218:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_findproblemrule’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18218:10: return_function: returning to ‘_wrap_Problem_findproblemrule’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18219:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18222:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18222:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18223:12: call_function: calling ‘Problem_findproblemrule’ from ‘_wrap_Problem_findproblemrule’ # 4530| } # 4531| SWIGINTERN XRule *Problem_findproblemrule(Problem *self){ # 4532|-> Id r = solver_findproblemrule(self->solv, self->id); # 4533| return new_XRule(self->solv, r); # 4534| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4536:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18232:1: enter_function: entry to ‘_wrap_Problem_findallproblemrules’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18235:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18242:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18245:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18245:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_findallproblemrules’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18245:10: return_function: returning to ‘_wrap_Problem_findallproblemrules’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18246:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18249:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18249:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18257:12: call_function: calling ‘Problem_findallproblemrules’ from ‘_wrap_Problem_findallproblemrules’ # 4534| } # 4535| SWIGINTERN Queue Problem_findallproblemrules(Problem *self,int unfiltered){ # 4536|-> Solver *solv = self->solv; # 4537| Id probr; # 4538| int i, j; Error: GCC_ANALYZER_WARNING (CWE-476): [#def9] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4559:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18283:1: enter_function: entry to ‘_wrap_Problem_solution_count’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18285:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18290:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18293:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18293:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_solution_count’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18293:10: return_function: returning to ‘_wrap_Problem_solution_count’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18294:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18297:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18297:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18298:12: call_function: inlined call to ‘Problem_solution_count’ from ‘_wrap_Problem_solution_count’ # 4557| } # 4558| SWIGINTERN int Problem_solution_count(Problem *self){ # 4559|-> return solver_solution_count(self->solv, self->id); # 4560| } # 4561| SWIGINTERN Queue Problem_solutions(Problem *self){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4565:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18307:1: enter_function: entry to ‘_wrap_Problem_solutions’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18309:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18314:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18317:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18317:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_solutions’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18317:10: return_function: returning to ‘_wrap_Problem_solutions’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18318:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18321:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18321:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18322:12: call_function: calling ‘Problem_solutions’ from ‘_wrap_Problem_solutions’ # 4563| int i, cnt; # 4564| queue_init(&q); # 4565|-> cnt = solver_solution_count(self->solv, self->id); # 4566| for (i = 1; i <= cnt; i++) # 4567| queue_push(&q, i); Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4573:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18348:1: enter_function: entry to ‘_wrap_Problem_get_learnt’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18350:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18355:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18358:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18358:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_get_learnt’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18358:10: return_function: returning to ‘_wrap_Problem_get_learnt’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18359:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18362:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18362:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18363:12: call_function: calling ‘Problem_get_learnt’ from ‘_wrap_Problem_get_learnt’ # 4571| Queue q; # 4572| queue_init(&q); # 4573|-> solver_get_learnt(self->solv, self->id, SOLVER_DECISIONLIST_PROBLEM, &q); # 4574| return q; # 4575| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def12] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4579:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18389:1: enter_function: entry to ‘_wrap_Problem_get_decisionlist’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18391:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18396:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18399:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18399:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_get_decisionlist’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18399:10: return_function: returning to ‘_wrap_Problem_get_decisionlist’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18400:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18403:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18403:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18404:12: call_function: calling ‘Problem_get_decisionlist’ from ‘_wrap_Problem_get_decisionlist’ # 4577| Queue q; # 4578| queue_init(&q); # 4579|-> solver_get_decisionlist(self->solv, self->id, SOLVER_DECISIONLIST_PROBLEM | SOLVER_DECISIONLIST_SORTED, &q); # 4580| return q; # 4581| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def13] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4585:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18430:1: enter_function: entry to ‘_wrap_Problem_get_decisionsetlist’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18432:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18437:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18440:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18440:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_get_decisionsetlist’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18440:10: return_function: returning to ‘_wrap_Problem_get_decisionsetlist’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18441:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18444:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18444:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18445:12: call_function: calling ‘Problem_get_decisionsetlist’ from ‘_wrap_Problem_get_decisionsetlist’ # 4583| Queue q; # 4584| queue_init(&q); # 4585|-> solver_get_decisionlist(self->solv, self->id, SOLVER_DECISIONLIST_PROBLEM | SOLVER_DECISIONLIST_SORTED | SOLVER_DECISIONLIST_WITHINFO | SOLVER_DECISIONLIST_MERGEDINFO, &q); # 4586| prepare_decisionset_queue(self->solv, &q); # 4587| return q; Error: GCC_ANALYZER_WARNING (CWE-476): [#def14] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4590:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18471:1: enter_function: entry to ‘_wrap_Problem_to_s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18473:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18478:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18481:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18481:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_to_s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18481:10: return_function: returning to ‘_wrap_Problem_to_s’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18482:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18485:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18485:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18486:20: call_function: inlined call to ‘Problem___str__’ from ‘_wrap_Problem_to_s’ # 4588| } # 4589| SWIGINTERN char const *Problem___str__(Problem *self){ # 4590|-> return solver_problem2str(self->solv, self->id); # 4591| } # 4592| SWIGINTERN Solution *new_Solution(Problem *p,Id id){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def15] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4601:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18621:1: enter_function: entry to ‘_wrap_Solution_element_count’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18623:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18628:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18631:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18631:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solution_element_count’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18631:10: return_function: returning to ‘_wrap_Solution_element_count’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18632:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18635:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18635:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18636:12: call_function: calling ‘Solution_element_count’ from ‘_wrap_Solution_element_count’ # 4599| } # 4600| SWIGINTERN int Solution_element_count(Solution *self){ # 4601|-> return solver_solutionelement_count(self->solv, self->problemid, self->id); # 4602| } # 4603| SWIGINTERN Queue Solution_elements(Solution *self,bool expandreplaces){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def16] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4606:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18645:1: enter_function: entry to ‘_wrap_Solution_elements’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18648:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18655:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18658:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18658:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solution_elements’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18658:10: return_function: returning to ‘_wrap_Solution_elements’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18659:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18662:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18662:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18670:12: call_function: calling ‘Solution_elements’ from ‘_wrap_Solution_elements’ # 4604| Queue q; # 4605| queue_init(&q); # 4606|-> solver_all_solutionelements(self->solv, self->problemid, self->id, expandreplaces, &q); # 4607| return q; # 4608| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def17] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4621:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18878:1: enter_function: entry to ‘_wrap_Solutionelement_str’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18880:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18885:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18888:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18888:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_str’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18888:10: return_function: returning to ‘_wrap_Solutionelement_str’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18889:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18892:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18892:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18893:20: call_function: calling ‘Solutionelement_str’ from ‘_wrap_Solutionelement_str’ # 4619| } # 4620| SWIGINTERN char const *Solutionelement_str(Solutionelement *self){ # 4621|-> return solver_solutionelementtype2str(self->solv, self->type, self->p, self->rp); # 4622| } # 4623| SWIGINTERN char const *Solutionelement___str__(Solutionelement *self){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def18] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4624:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18902:1: enter_function: entry to ‘_wrap_Solutionelement_to_s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18904:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18909:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18912:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18912:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_to_s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18912:10: return_function: returning to ‘_wrap_Solutionelement_to_s’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18913:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18916:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18916:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18917:20: call_function: calling ‘Solutionelement___str__’ from ‘_wrap_Solutionelement_to_s’ # 4622| } # 4623| SWIGINTERN char const *Solutionelement___str__(Solutionelement *self){ # 4624|-> return solver_solutionelementtype2str(self->solv, self->type, self->p, self->rp); # 4625| } # 4626| SWIGINTERN Queue Solutionelement_replaceelements(Solutionelement *self){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def19] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4631:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18926:1: enter_function: entry to ‘_wrap_Solutionelement_replaceelements’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18928:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18933:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18936:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18936:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_replaceelements’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18936:10: return_function: returning to ‘_wrap_Solutionelement_replaceelements’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18937:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18940:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18940:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18941:12: call_function: calling ‘Solutionelement_replaceelements’ from ‘_wrap_Solutionelement_replaceelements’ # 4629| # 4630| queue_init(&q); # 4631|-> if (self->type != SOLVER_SOLUTION_REPLACE || self->p <= 0 || self->rp <= 0) # 4632| illegal = 0; # 4633| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def20] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4648:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18967:1: enter_function: entry to ‘_wrap_Solutionelement_illegalreplace’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18969:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18974:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18977:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18977:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_illegalreplace’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18977:10: return_function: returning to ‘_wrap_Solutionelement_illegalreplace’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18978:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18981:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18981:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18982:12: call_function: calling ‘Solutionelement_illegalreplace’ from ‘_wrap_Solutionelement_illegalreplace’ # 4646| } # 4647| SWIGINTERN int Solutionelement_illegalreplace(Solutionelement *self){ # 4648|-> if (self->type != SOLVER_SOLUTION_REPLACE || self->p <= 0 || self->rp <= 0) # 4649| return 0; # 4650| return policy_is_illegal(self->solv, self->solv->pool->solvables + self->p, self->solv->pool->solvables + self->rp, 0); Error: GCC_ANALYZER_WARNING (CWE-476): [#def21] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4654:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18991:1: enter_function: entry to ‘_wrap_Solutionelement_solvable_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18993:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18998:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19001:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19001:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_solvable_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19001:10: return_function: returning to ‘_wrap_Solutionelement_solvable_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19002:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19005:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19005:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19006:12: call_function: inlined call to ‘Solutionelement_solvable_get’ from ‘_wrap_Solutionelement_solvable_get’ # 4652| # 4653| SWIGINTERN XSolvable *Solutionelement_solvable_get(Solutionelement *e) { # 4654|-> return new_XSolvable(e->solv->pool, e->p); # 4655| } # 4656| SWIGINTERN XSolvable *Solutionelement_replacement_get(Solutionelement *e) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def22] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4657:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19015:1: enter_function: entry to ‘_wrap_Solutionelement_replacement_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19017:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19022:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19025:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19025:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_replacement_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19025:10: return_function: returning to ‘_wrap_Solutionelement_replacement_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19026:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19029:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19029:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19030:12: call_function: inlined call to ‘Solutionelement_replacement_get’ from ‘_wrap_Solutionelement_replacement_get’ # 4655| } # 4656| SWIGINTERN XSolvable *Solutionelement_replacement_get(Solutionelement *e) { # 4657|-> return new_XSolvable(e->solv->pool, e->rp); # 4658| } # 4659| SWIGINTERN int Solutionelement_jobidx_get(Solutionelement *e) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def23] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4660:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19039:1: enter_function: entry to ‘_wrap_Solutionelement_jobidx_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19041:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19046:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19049:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19049:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_jobidx_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19049:10: return_function: returning to ‘_wrap_Solutionelement_jobidx_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19050:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19053:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19053:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19054:12: call_function: inlined call to ‘Solutionelement_jobidx_get’ from ‘_wrap_Solutionelement_jobidx_get’ # 4658| } # 4659| SWIGINTERN int Solutionelement_jobidx_get(Solutionelement *e) { # 4660|-> if (e->type != SOLVER_SOLUTION_JOB && e->type != SOLVER_SOLUTION_POOLJOB) # 4661| return -1; # 4662| return (e->p - 1) / 2; Error: GCC_ANALYZER_WARNING (CWE-476): [#def24] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4666:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19063:1: enter_function: entry to ‘_wrap_Solutionelement_Job’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19065:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19070:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19073:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19073:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_Job’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19073:10: return_function: returning to ‘_wrap_Solutionelement_Job’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19074:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19077:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19077:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19078:12: call_function: calling ‘Solutionelement_Job’ from ‘_wrap_Solutionelement_Job’ # 4664| # 4665| SWIGINTERN Job *Solutionelement_Job(Solutionelement *self){ # 4666|-> Id extraflags = solver_solutionelement_extrajobflags(self->solv, self->problemid, self->solutionid); # 4667| if (self->type == SOLVER_SOLUTION_JOB || self->type == SOLVER_SOLUTION_POOLJOB) # 4668| return new_Job(self->solv->pool, SOLVER_NOOP, 0); Error: GCC_ANALYZER_WARNING (CWE-476): [#def25] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4679:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19225:1: enter_function: entry to ‘_wrap_Alternative_chosen_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19227:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19232:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19235:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19235:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_chosen_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19235:10: return_function: returning to ‘_wrap_Alternative_chosen_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19236:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19239:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19239:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19240:12: call_function: inlined call to ‘Alternative_chosen_get’ from ‘_wrap_Alternative_chosen_get’ # 4677| # 4678| SWIGINTERN XSolvable *Alternative_chosen_get(Alternative *a) { # 4679|-> return new_XSolvable(a->solv->pool, a->chosen_id); # 4680| } # 4681| SWIGINTERN XRule *Alternative_rule_get(Alternative *a) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def26] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4682:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19249:1: enter_function: entry to ‘_wrap_Alternative_rule_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19251:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19256:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19259:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19259:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_rule_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19259:10: return_function: returning to ‘_wrap_Alternative_rule_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19260:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19263:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19263:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19264:12: call_function: inlined call to ‘Alternative_rule_get’ from ‘_wrap_Alternative_rule_get’ # 4680| } # 4681| SWIGINTERN XRule *Alternative_rule_get(Alternative *a) { # 4682|-> return new_XRule(a->solv, a->rid); # 4683| } # 4684| SWIGINTERN XSolvable *Alternative_depsolvable_get(Alternative *a) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def27] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4685:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19273:1: enter_function: entry to ‘_wrap_Alternative_depsolvable_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19275:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19280:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19283:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19283:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_depsolvable_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19283:10: return_function: returning to ‘_wrap_Alternative_depsolvable_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19284:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19287:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19287:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19288:12: call_function: inlined call to ‘Alternative_depsolvable_get’ from ‘_wrap_Alternative_depsolvable_get’ # 4683| } # 4684| SWIGINTERN XSolvable *Alternative_depsolvable_get(Alternative *a) { # 4685|-> return new_XSolvable(a->solv->pool, a->from_id); # 4686| } # 4687| SWIGINTERN Dep *Alternative_dep_get(Alternative *a) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def28] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4688:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19297:1: enter_function: entry to ‘_wrap_Alternative_dep_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19299:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19304:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19307:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19307:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_dep_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19307:10: return_function: returning to ‘_wrap_Alternative_dep_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19308:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19311:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19311:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19312:12: call_function: inlined call to ‘Alternative_dep_get’ from ‘_wrap_Alternative_dep_get’ # 4686| } # 4687| SWIGINTERN Dep *Alternative_dep_get(Alternative *a) { # 4688|-> return new_Dep(a->solv->pool, a->dep_id); # 4689| } # 4690| Error: GCC_ANALYZER_WARNING (CWE-476): [#def29] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4706:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19393:1: enter_function: entry to ‘_wrap_Alternative_to_s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19395:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19400:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19403:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19403:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_to_s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19403:10: return_function: returning to ‘_wrap_Alternative_to_s’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19404:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19407:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19407:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19408:20: call_function: calling ‘Alternative___str__’ from ‘_wrap_Alternative_to_s’ # 4704| } # 4705| SWIGINTERN char const *Alternative___str__(Alternative *self){ # 4706|-> return solver_alternative2str(self->solv, self->type, self->type == SOLVER_ALTERNATIVE_TYPE_RULE ? self->rid : self->dep_id, self->from_id); # 4707| } # 4708| SWIGINTERN bool Transaction_isempty(Transaction *self){ Error: GCC_ANALYZER_WARNING (CWE-476): [#def30] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4712:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19476:1: enter_function: entry to ‘_wrap_Transaction_othersolvable’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19479:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19481:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19486:6: branch_false: following ‘false’ branch (when ‘argc == 1’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19489:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19489:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_othersolvable’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19489:10: return_function: returning to ‘_wrap_Transaction_othersolvable’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19490:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19493:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19493:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19494:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_othersolvable’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19494:10: return_function: returning to ‘_wrap_Transaction_othersolvable’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19495:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19498:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19498:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19499:12: call_function: calling ‘Transaction_othersolvable’ from ‘_wrap_Transaction_othersolvable’ # 4710| } # 4711| SWIGINTERN XSolvable *Transaction_othersolvable(Transaction *self,XSolvable *s){ # 4712|-> Id op = transaction_obs_pkg(self, s->id); # 4713| return new_XSolvable(self->pool, op); # 4714| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def31] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4718:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19508:1: enter_function: entry to ‘_wrap_Transaction_allothersolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19511:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19513:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19518:6: branch_false: following ‘false’ branch (when ‘argc == 1’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19521:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19521:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_allothersolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19521:10: return_function: returning to ‘_wrap_Transaction_allothersolvables’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19522:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19525:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19525:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19526:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_allothersolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19526:10: return_function: returning to ‘_wrap_Transaction_allothersolvables’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19527:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19530:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19530:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19531:12: call_function: calling ‘Transaction_allothersolvables’ from ‘_wrap_Transaction_allothersolvables’ # 4716| Queue q; # 4717| queue_init(&q); # 4718|-> transaction_all_obs_pkgs(self, s->id, &q); # 4719| return q; # 4720| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def32] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4797:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20108:1: enter_function: entry to ‘_wrap_TransactionClass_solvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20110:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20115:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20118:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20118:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_solvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20118:10: return_function: returning to ‘_wrap_TransactionClass_solvables’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20119:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20122:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20122:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20123:12: call_function: calling ‘TransactionClass_solvables’ from ‘_wrap_TransactionClass_solvables’ # 4795| Queue q; # 4796| queue_init(&q); # 4797|-> transaction_classify_pkgs(self->transaction, self->mode, self->type, self->fromid, self->toid, &q); # 4798| return q; # 4799| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def33] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4802:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20149:1: enter_function: entry to ‘_wrap_TransactionClass_fromstr_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20151:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20156:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20159:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20159:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_fromstr_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20159:10: return_function: returning to ‘_wrap_TransactionClass_fromstr_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20160:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20163:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20163:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20164:20: call_function: inlined call to ‘TransactionClass_fromstr_get’ from ‘_wrap_TransactionClass_fromstr_get’ # 4800| # 4801| SWIGINTERN const char *TransactionClass_fromstr_get(TransactionClass *cl) { # 4802|-> return pool_id2str(cl->transaction->pool, cl->fromid); # 4803| } # 4804| SWIGINTERN const char *TransactionClass_tostr_get(TransactionClass *cl) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def34] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:4805:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20173:1: enter_function: entry to ‘_wrap_TransactionClass_tostr_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20175:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20180:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20183:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20183:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_tostr_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20183:10: return_function: returning to ‘_wrap_TransactionClass_tostr_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20184:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20187:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20187:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20188:20: call_function: inlined call to ‘TransactionClass_tostr_get’ from ‘_wrap_TransactionClass_tostr_get’ # 4803| } # 4804| SWIGINTERN const char *TransactionClass_tostr_get(TransactionClass *cl) { # 4805|-> return pool_id2str(cl->transaction->pool, cl->toid); # 4806| } # 4807| Error: GCC_ANALYZER_WARNING (CWE-476): [#def35] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18129:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18114:1: enter_function: entry to ‘_wrap_Problem_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18116:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18121:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18124:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18124:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18124:10: return_function: returning to ‘_wrap_Problem_solv_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18125:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18128:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18128:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18129:3: danger: dereference of NULL ‘arg1’ #18127| } #18128| arg1 = (Problem *)(argp1); #18129|-> result = (Solver *)(Solver *) ((arg1)->solv); #18130| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Solver, 0 | 0 ); #18131| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def36] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18153:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18138:1: enter_function: entry to ‘_wrap_Problem_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18140:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18145:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18148:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18148:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Problem_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18148:10: return_function: returning to ‘_wrap_Problem_id_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18149:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18152:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18152:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18153:3: danger: dereference of NULL ‘arg1’ #18151| } #18152| arg1 = (Problem *)(argp1); #18153|-> result = (Id)(Id) ((arg1)->id); #18154| vresult = SWIG_From_int((int)(result)); #18155| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def37] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18518:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18503:1: enter_function: entry to ‘_wrap_Solution_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18505:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18510:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18513:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18513:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solution_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18513:10: return_function: returning to ‘_wrap_Solution_solv_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18514:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18517:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18517:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18518:3: danger: dereference of NULL ‘arg1’ #18516| } #18517| arg1 = (Solution *)(argp1); #18518|-> result = (Solver *)(Solver *) ((arg1)->solv); #18519| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Solver, 0 | 0 ); #18520| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def38] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18542:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18527:1: enter_function: entry to ‘_wrap_Solution_problemid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18529:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18534:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18537:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18537:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solution_problemid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18537:10: return_function: returning to ‘_wrap_Solution_problemid_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18538:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18541:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18541:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18542:3: danger: dereference of NULL ‘arg1’ #18540| } #18541| arg1 = (Solution *)(argp1); #18542|-> result = (Id)(Id) ((arg1)->problemid); #18543| vresult = SWIG_From_int((int)(result)); #18544| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def39] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18566:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18551:1: enter_function: entry to ‘_wrap_Solution_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18553:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18558:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18561:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18561:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solution_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18561:10: return_function: returning to ‘_wrap_Solution_id_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18562:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18565:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18565:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18566:3: danger: dereference of NULL ‘arg1’ #18564| } #18565| arg1 = (Solution *)(argp1); #18566|-> result = (Id)(Id) ((arg1)->id); #18567| vresult = SWIG_From_int((int)(result)); #18568| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def40] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18719:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18704:1: enter_function: entry to ‘_wrap_Solutionelement_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18706:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18711:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18714:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18714:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18714:10: return_function: returning to ‘_wrap_Solutionelement_solv_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18715:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18718:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18718:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18719:3: danger: dereference of NULL ‘arg1’ #18717| } #18718| arg1 = (Solutionelement *)(argp1); #18719|-> result = (Solver *)(Solver *) ((arg1)->solv); #18720| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Solver, 0 | 0 ); #18721| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def41] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18743:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18728:1: enter_function: entry to ‘_wrap_Solutionelement_problemid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18730:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18735:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18738:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18738:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_problemid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18738:10: return_function: returning to ‘_wrap_Solutionelement_problemid_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18739:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18742:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18742:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18743:3: danger: dereference of NULL ‘arg1’ #18741| } #18742| arg1 = (Solutionelement *)(argp1); #18743|-> result = (Id)(Id) ((arg1)->problemid); #18744| vresult = SWIG_From_int((int)(result)); #18745| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def42] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18767:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18752:1: enter_function: entry to ‘_wrap_Solutionelement_solutionid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18754:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18759:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18762:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18762:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_solutionid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18762:10: return_function: returning to ‘_wrap_Solutionelement_solutionid_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18763:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18766:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18766:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18767:3: danger: dereference of NULL ‘arg1’ #18765| } #18766| arg1 = (Solutionelement *)(argp1); #18767|-> result = (Id)(Id) ((arg1)->solutionid); #18768| vresult = SWIG_From_int((int)(result)); #18769| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def43] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18791:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18776:1: enter_function: entry to ‘_wrap_Solutionelement_type_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18778:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18783:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18786:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18786:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Solutionelement_type_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18786:10: return_function: returning to ‘_wrap_Solutionelement_type_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18787:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18790:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18790:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:18791:3: danger: dereference of NULL ‘arg1’ #18789| } #18790| arg1 = (Solutionelement *)(argp1); #18791|-> result = (Id)(Id) ((arg1)->type); #18792| vresult = SWIG_From_int((int)(result)); #18793| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def44] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19110:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19095:1: enter_function: entry to ‘_wrap_Alternative_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19097:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19102:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19105:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19105:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_solv_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19105:10: return_function: returning to ‘_wrap_Alternative_solv_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19106:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19109:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19109:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19110:3: danger: dereference of NULL ‘arg1’ #19108| } #19109| arg1 = (Alternative *)(argp1); #19110|-> result = (Solver *)(Solver *) ((arg1)->solv); #19111| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Solver, 0 | 0 ); #19112| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def45] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19134:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19119:1: enter_function: entry to ‘_wrap_Alternative_type_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19121:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19126:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19129:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19129:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_type_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19129:10: return_function: returning to ‘_wrap_Alternative_type_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19130:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19133:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19133:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19134:3: danger: dereference of NULL ‘arg1’ #19132| } #19133| arg1 = (Alternative *)(argp1); #19134|-> result = (Id)(Id) ((arg1)->type); #19135| vresult = SWIG_From_int((int)(result)); #19136| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def46] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19158:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19143:1: enter_function: entry to ‘_wrap_Alternative_dep_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19145:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19150:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19153:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19153:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_dep_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19153:10: return_function: returning to ‘_wrap_Alternative_dep_id_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19154:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19157:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19157:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19158:3: danger: dereference of NULL ‘arg1’ #19156| } #19157| arg1 = (Alternative *)(argp1); #19158|-> result = (Id)(Id) ((arg1)->dep_id); #19159| vresult = SWIG_From_int((int)(result)); #19160| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def47] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19182:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19167:1: enter_function: entry to ‘_wrap_Alternative_chosen_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19169:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19174:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19177:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19177:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_chosen_id_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19177:10: return_function: returning to ‘_wrap_Alternative_chosen_id_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19178:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19181:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19181:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19182:3: danger: dereference of NULL ‘arg1’ #19180| } #19181| arg1 = (Alternative *)(argp1); #19182|-> result = (Id)(Id) ((arg1)->chosen_id); #19183| vresult = SWIG_From_int((int)(result)); #19184| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def48] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19206:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19191:1: enter_function: entry to ‘_wrap_Alternative_level_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19193:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19198:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19201:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19201:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_level_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19201:10: return_function: returning to ‘_wrap_Alternative_level_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19202:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19205:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19205:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19206:3: danger: dereference of NULL ‘arg1’ #19204| } #19205| arg1 = (Alternative *)(argp1); #19206|-> result = (int)(int) ((arg1)->level); #19207| vresult = SWIG_From_int((int)(result)); #19208| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def49] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19377:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19352:1: enter_function: entry to ‘_wrap_Alternative_choices’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19354:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19359:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19362:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19362:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Alternative_choices’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19362:10: return_function: returning to ‘_wrap_Alternative_choices’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19363:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19366:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19366:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19373:17: branch_true: following ‘true’ branch (when ‘i < cnt’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19375:10: branch_true: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19377:42: danger: dereference of NULL ‘arg1’ #19375| Id id = *idp; #19376| #define result resultx #19377|-> XSolvable * result = new_XSolvable(arg1->solv->pool, id); #19378| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XSolvable, 0 | 0 ); #19379| rb_ary_store(o, i, vresult); Error: GCC_ANALYZER_WARNING (CWE-476): [#def50] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19434:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19419:1: enter_function: entry to ‘_wrap_Transaction_pool_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19421:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19426:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19429:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19429:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_pool_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19429:10: return_function: returning to ‘_wrap_Transaction_pool_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19430:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19433:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19433:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19434:3: danger: dereference of NULL ‘arg1’ #19432| } #19433| arg1 = (Transaction *)(argp1); #19434|-> result = (Pool *)(Pool *) ((arg1)->pool); #19435| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pool, 0 | 0 ); #19436| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def51] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19633:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19608:1: enter_function: entry to ‘_wrap_Transaction_newpackages’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19610:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19615:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19618:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19618:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_newpackages’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19618:10: return_function: returning to ‘_wrap_Transaction_newpackages’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19619:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19622:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19622:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19629:17: branch_true: following ‘true’ branch (when ‘i < cnt’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19631:10: branch_true: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19633:28: danger: dereference of NULL ‘arg1’ #19631| Id id = *idp; #19632| #define result resultx #19633|-> XSolvable * result = new_XSolvable(arg1->pool, id); #19634| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XSolvable, SWIG_POINTER_OWN | 0 ); #19635| rb_ary_store(o, i, vresult); Error: GCC_ANALYZER_WARNING (CWE-476): [#def52] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19674:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19649:1: enter_function: entry to ‘_wrap_Transaction_keptpackages’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19651:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19656:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19659:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19659:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_keptpackages’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19659:10: return_function: returning to ‘_wrap_Transaction_keptpackages’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19660:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19663:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19663:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19670:17: branch_true: following ‘true’ branch (when ‘i < cnt’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19672:10: branch_true: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19674:28: danger: dereference of NULL ‘arg1’ #19672| Id id = *idp; #19673| #define result resultx #19674|-> XSolvable * result = new_XSolvable(arg1->pool, id); #19675| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XSolvable, SWIG_POINTER_OWN | 0 ); #19676| rb_ary_store(o, i, vresult); Error: GCC_ANALYZER_WARNING (CWE-476): [#def53] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19715:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19690:1: enter_function: entry to ‘_wrap_Transaction_newsolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19692:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19697:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19700:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19700:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_newsolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19700:10: return_function: returning to ‘_wrap_Transaction_newsolvables’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19701:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19704:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19704:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19711:17: branch_true: following ‘true’ branch (when ‘i < cnt’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19713:10: branch_true: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19715:28: danger: dereference of NULL ‘arg1’ #19713| Id id = *idp; #19714| #define result resultx #19715|-> XSolvable * result = new_XSolvable(arg1->pool, id); #19716| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XSolvable, SWIG_POINTER_OWN | 0 ); #19717| rb_ary_store(o, i, vresult); Error: GCC_ANALYZER_WARNING (CWE-476): [#def54] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19756:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19731:1: enter_function: entry to ‘_wrap_Transaction_keptsolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19733:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19738:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19741:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19741:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_keptsolvables’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19741:10: return_function: returning to ‘_wrap_Transaction_keptsolvables’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19742:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19745:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19745:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19752:17: branch_true: following ‘true’ branch (when ‘i < cnt’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19754:10: branch_true: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19756:28: danger: dereference of NULL ‘arg1’ #19754| Id id = *idp; #19755| #define result resultx #19756|-> XSolvable * result = new_XSolvable(arg1->pool, id); #19757| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XSolvable, SWIG_POINTER_OWN | 0 ); #19758| rb_ary_store(o, i, vresult); Error: GCC_ANALYZER_WARNING (CWE-476): [#def55] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19797:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19772:1: enter_function: entry to ‘_wrap_Transaction_steps’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19774:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19779:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19782:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19782:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_Transaction_steps’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19782:10: return_function: returning to ‘_wrap_Transaction_steps’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19783:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19786:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19786:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19793:17: branch_true: following ‘true’ branch (when ‘i < <unknown>’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19795:10: branch_true: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19797:28: danger: dereference of NULL ‘arg1’ #19795| Id id = *idp; #19796| #define result resultx #19797|-> XSolvable * result = new_XSolvable(arg1->pool, id); #19798| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XSolvable, SWIG_POINTER_OWN | 0 ); #19799| rb_ary_store(o, i, vresult); Error: GCC_ANALYZER_WARNING (CWE-476): [#def56] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19925:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19910:1: enter_function: entry to ‘_wrap_TransactionClass_transaction_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19912:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19917:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19920:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19920:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_transaction_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19920:10: return_function: returning to ‘_wrap_TransactionClass_transaction_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19921:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19924:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19924:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19925:3: danger: dereference of NULL ‘arg1’ #19923| } #19924| arg1 = (TransactionClass *)(argp1); #19925|-> result = (Transaction *)(Transaction *) ((arg1)->transaction); #19926| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Transaction, 0 | 0 ); #19927| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def57] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19949:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19934:1: enter_function: entry to ‘_wrap_TransactionClass_type_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19936:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19941:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19944:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19944:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_type_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19944:10: return_function: returning to ‘_wrap_TransactionClass_type_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19945:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19948:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19948:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19949:3: danger: dereference of NULL ‘arg1’ #19947| } #19948| arg1 = (TransactionClass *)(argp1); #19949|-> result = (Id)(Id) ((arg1)->type); #19950| vresult = SWIG_From_int((int)(result)); #19951| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def58] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19973:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19958:1: enter_function: entry to ‘_wrap_TransactionClass_fromid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19960:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19965:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19968:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19968:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_fromid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19968:10: return_function: returning to ‘_wrap_TransactionClass_fromid_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19969:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19972:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19972:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19973:3: danger: dereference of NULL ‘arg1’ #19971| } #19972| arg1 = (TransactionClass *)(argp1); #19973|-> result = (Id)(Id) ((arg1)->fromid); #19974| vresult = SWIG_From_int((int)(result)); #19975| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def59] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19997:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19982:1: enter_function: entry to ‘_wrap_TransactionClass_toid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19984:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19989:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19992:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19992:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_toid_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19992:10: return_function: returning to ‘_wrap_TransactionClass_toid_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19993:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19996:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19996:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:19997:3: danger: dereference of NULL ‘arg1’ #19995| } #19996| arg1 = (TransactionClass *)(argp1); #19997|-> result = (Id)(Id) ((arg1)->toid); #19998| vresult = SWIG_From_int((int)(result)); #19999| return vresult; Error: GCC_ANALYZER_WARNING (CWE-476): [#def60] libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20021:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20006:1: enter_function: entry to ‘_wrap_TransactionClass_count_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20008:9: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20013:6: branch_false: following ‘false’ branch (when ‘argc == 0’)... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20016:10: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20016:10: call_function: calling ‘SWIG_Ruby_ConvertPtrAndOwn’ from ‘_wrap_TransactionClass_count_get’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20016:10: return_function: returning to ‘_wrap_TransactionClass_count_get’ from ‘SWIG_Ruby_ConvertPtrAndOwn’ libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20017:6: branch_false: following ‘false’ branch... libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20020:3: branch_false: ...to here libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20020:3: release_memory: ‘argp1’ is NULL libsolv-0.7.37/redhat-linux-build/bindings/ruby/solv_ruby.c:20021:3: danger: dereference of NULL ‘arg1’ #20019| } #20020| arg1 = (TransactionClass *)(argp1); #20021|-> result = (int)(int) ((arg1)->count); #20022| vresult = SWIG_From_int((int)(result)); #20023| return vresult;
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-58.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | libsolv-0.7.36-2.fc44 |
| diffbase-store-results-to | /tmp/tmpok_2jr4g/libsolv-0.7.36-2.fc44.tar.xz |
| diffbase-time-created | 2026-04-28 17:52:32 |
| diffbase-time-finished | 2026-04-28 17:55:27 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpok_2jr4g/libsolv-0.7.36-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpok_2jr4g/libsolv-0.7.36-2.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-58.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libsolv-0.7.37-1.fc45 |
| store-results-to | /tmp/tmp03bjdux8/libsolv-0.7.37-1.fc45.tar.xz |
| time-created | 2026-04-28 17:55:34 |
| time-finished | 2026-04-28 17:57:59 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp03bjdux8/libsolv-0.7.37-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp03bjdux8/libsolv-0.7.37-1.fc45.src.rpm' |
| tool-version | csmock-3.8.5-1.el9 |