[Freeciv-tickets] [freeciv] #45418: inf magic error after a parse error in included file

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Sat Sep 10 11:40:59 JST 2022


#45418: inf magic error after a parse error in included file

  Open Date: 2022-08-21 20:29
Last Update: 2022-09-10 05:40

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/45418
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45418

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-09-10 05:40 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.0.4
     Component: General
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

When there's a parse error in an included file, resulting in a inf_close() call to that file:
1. inf_close() gets called recursively for the including file, as per inf->included_from
2. inf_close_partial() for the included file itself does inf_sanity_check()
3. In case of FREECIV_DEBUG build, inf_sanity_check() calls itself recursively for the including file (inf->included_from)
4. As that including file was already closed in (1), the sanity check makes all kind of illegal memory accesses


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/45418
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45418



More information about the Freeciv-tickets mailing list
Zurück zum Archiv-Index