[Freeciv-tickets] [freeciv] #48841: packets_gen.c equality test on floating point numbers

Back to archive index
OSDN Ticket System norep****@osdn*****
Sun Oct 15 03:47:50 JST 2023


#48841: packets_gen.c equality test on floating point numbers

  Open Date: 2023-10-13 01:51
Last Update: 2023-10-14 21:47

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

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

Last Changes/Comment on this Ticket:
2023-10-14 21:47 Updated by: cazfi

Comment:

Reply To alienvalkyrie

We could also not diff float fields at all and save those bits in the header (though we don't currently have a mechanism to exempt only individual fields from delta; would have to add that).
I guess there would be also an option to just set the bit always, with no check involved at all.

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

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

CodeQL about main branch:
Equality test on floating-point values
common/packets_gen.c:37792


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



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