Ticket #47574

gtk3.22 client runtime error with clang

오픈 날짜: 2023-03-14 09:43 마지막 업데이트: 2023-03-25 01:15

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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'

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
  • Milestone Update from (None) to 3.0.7 (closed)
  • Component Update from (None) to General
2023-03-20 03:43 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None 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
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login