任务单 #47615

sdl2: First create_tech_info() 't1' assignment is a dead one

开放日期: 2023-03-21 02:59 最后更新: 2023-03-26 17:13

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
3

Details

As clang analyzer reports, 't1' assignment in create_tech_info() before the while loop is a dead one. It gets overwritten on the first round of the loop. Further, the assignment might cause NULL dereference if there's no sub targets (even index 0 sub target is NULL).

任务单历史 (3/6 Histories)

2023-03-21 02:59 Updated by: cazfi
  • New Ticket "sdl2: First create_tech_info() 't1' assignment is a dead one" created
2023-03-21 03:16 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
评论

Attached even S2_6 patch, handling also sdl-client

2023-03-26 17:13 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名