Ticket #47660

../../common/nation.c:563:21: runtime error: applying zero offset to null pointer

Eröffnet am: 2023-03-23 20:59 Letztes Update: 2023-05-10 11:12

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
1

Details

3.0.6 clang

This is an error at each start of the server.

I searched in the net, but i don't understand the answers, maybe just something clang catches but gcc does not care about ?

Edited : ok i found, it is simple :-) , just a very strict compiler ...

Ticket-Verlauf (3/8 Historien)

2023-03-23 20:59 Aktualisiert von: alain_bkr
  • New Ticket "../../common/nation.c:563:21: runtime error: applying zero offset to null pointer" created
2023-03-23 21:02 Aktualisiert von: alain_bkr
  • Komponente Update from (Keine) to Server
2023-03-23 22:01 Aktualisiert von: cazfi
Kommentar

That might be something that clang analyzer reports too. (There's about 80 analyzer reports left that I've not yet looked at - there was about 320 when I started with them a year ago)

2023-05-07 00:35 Aktualisiert von: alain_bkr
2023-05-07 00:39 Aktualisiert von: alain_bkr
  • Details Updated
2023-05-07 22:58 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
  • Meilenstein Update from 3.1.0-beta2 (closed) to 3.0.8 (closed)
  • Komponente Update from Server to General
Kommentar

Applies to all branches, even to S2_6 (and I think the fix should go there, even though the specific symptom seen isn't critical - some other "iterator initialized while nations not in sane state" case might be)

2023-05-10 11:12 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Dateianhangliste

Bearbeiten

Please login to add comment to this ticket » Anmelden