[Freeciv-tickets] [freeciv] #43871: luascript_func_check(): variable used uninitialized on FREECIV_NDEBUG build

Back to archive index
OSDN Ticket System norep****@osdn*****
Fri Mar 4 04:23:28 JST 2022


#43871: luascript_func_check(): variable used uninitialized on FREECIV_NDEBUG build

  Open Date: 2022-02-15 13:00
Last Update: 2022-03-03 21:23

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

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

Last Changes/Comment on this Ticket:
2022-03-03 21:23 Updated by: cazfi
 * Resolution Update from None to Accepted

Comment:

Reply To cazfi
As fc_assert_ret_val() is one of the macros of the fc_assert family that we still have active even on --disable-debug builds, there's no *currently* functional bug, and this patch causes compilation failure instead.
No, that was true for S2_6 only. In later branches the functionality is broken + there's no compile failure with the patch -> going to push existing patch to S3_0+, and will do nothing to S2_6.

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

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.0.1
     Component: General
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

luascript_func_check() sets variable pfunc within fc_assert_ret_val(), i.e., it's not set in FREECIV_NDEBUG builds. Later code expects it to be set.

-- 
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/43871
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43871



More information about the Freeciv-tickets mailing list
Back to archive index