1. 29 Sep, 2020 1 commit
  2. 26 Sep, 2020 3 commits
    • Philipp Kutin's avatar
      duke32: in savegame.cpp, use Bstrncpyz() for copying from/to '_savehead::boardfn'. · 778901d0
      Philipp Kutin authored
      With 'RELEASE := 0', gcc (Raspbian 8.3.0-6+rpi1) 8.3.0 said:
      
       savegame.cpp: In function 'int32_t G_LoadPlayer(savebrief_t&)':
       savegame.cpp:655:12: warning: 'void* memcpy(void*, const void*, size_t)' offset [297, 328]
         from the object at 'h' is out of the bounds of referenced subobject '_savehead::boardfn'
         with type 'char [224]' at offset 72 [-Warray-bounds]
            Bmemcpy(boardfilename, h.boardfn, sizeof(boardfilename));
      
      It also emits many warnings about possible truncation with (B)snprintf(),
      presumably based on computed upper bounds on the length of the input varargs.
      
      Also, resurrect static assert for post-commit-687000e2 situation and
      remove comment referencing a tag which was removed in commit bd3a933a.
      778901d0
    • Philipp Kutin's avatar
      audiolib: in driver_adlib.cpp's macros LL_{AddToTail,Remove}(), use offsetof(). · e2ba35f2
      Philipp Kutin authored
      source/audiolib/src/driver_adlib.cpp:499:13: runtime error: member access within null pointer of type 'AdLibVoice'
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior source/audiolib/src/driver_adlib.cpp:499:13 in
      e2ba35f2
    • Philipp Kutin's avatar
      GNUmakefile: compile enet.cpp only if NETCODE!=0. · f1aec344
      Philipp Kutin authored
      Background: gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
      I'm getting a missing compiler-provided symbol:
      
       /usr/bin/ld: obj/build/enet.o: in function `enet_time_get':
       source/build/include/enet.h:4948: undefined reference to `__atomic_load_8'
       /usr/bin/ld: source/build/include/enet.h:4958: undefined reference to `__atomic_compare_exchange_8'
       collect2: error: ld returned 1 exit status
      
      so have a means of omitting the object file when it is not actually needed.
      f1aec344
  3. 22 Sep, 2020 3 commits
  4. 20 Sep, 2020 1 commit
  5. 08 Sep, 2020 3 commits
  6. 06 Sep, 2020 1 commit
  7. 30 Aug, 2020 1 commit
  8. 28 Aug, 2020 1 commit
  9. 27 Aug, 2020 1 commit
  10. 26 Aug, 2020 1 commit
  11. 24 Aug, 2020 5 commits
  12. 23 Aug, 2020 2 commits
  13. 18 Aug, 2020 3 commits
  14. 15 Aug, 2020 14 commits