任务单 #47574

gtk3.22 client runtime error with clang

开放日期: 2023-03-14 09:43 最后更新: 2023-03-25 01:15

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

Details

3.0.6+ compiled with clang -fsanitize=undefined

client gtk-3.22

../../client/options.c:4527:20: runtime error: applying zero offset to null pointer

../../common/research.c:775:12: runtime error: index 201 out of bounds for type 'const struct research_invention[200]'

../../client/mapview_common.c:214:13: runtime error: -nan is outside the range of representable values of type 'int'
../../client/mapview_common.c:215:13: runtime error: -nan is outside the range of representable values of type 'int'

任务单历史 (3/8 Histories)

2023-03-14 09:43 Updated by: alain_bkr
  • New Ticket "gtk3.22 client runtime error with clang" created
2023-03-19 22:53 Updated by: cazfi
评论

Reply To alain_bkr

../../common/research.c:775:12: runtime error: index 201 out of bounds for type 'const struct research_invention200'

Regression with #46544, I think

2023-03-19 22:53 Updated by: cazfi
  • 里程碑 Update from (无) to 3.0.7 (关闭)
  • 组件 Update from (无) to General
2023-03-20 03:43 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
评论

Bit of an emergency fix attached. It avoids the "out of bounds" error, but I'm not sure what other consequences there is to the fact that A_FUTURE gets treated this way as part of the research structure.

2023-03-23 21:33 Updated by: cazfi
评论

Reply To alain_bkr

../../client/options.c:4527:20: runtime error: applying zero offset to null pointer

-> #47663

2023-03-25 01:12 Updated by: cazfi
评论

Reply To alain_bkr

../../client/mapview_common.c:214:13: runtime error: -nan is outside the range of representable values of type 'int'
../../client/mapview_common.c:215:13: runtime error: -nan is outside the range of representable values of type 'int'

-> #47679

2023-03-25 01:15 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

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