待辦事項 #47574

gtk3.22 client runtime error with clang

啟用日期: 2023-03-14 09:43 最後更新: 2023-03-25 01:15

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
1

細節

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'

Ticket History (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 (closed)
  • 元件 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 修正

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入