Skip to content
Snippets Groups Projects
  1. Oct 16, 2021
    • Matthias Schiffer's avatar
      gluon-neighbour-info: avoid recv() with NULL buffer (#2323) · 51a17084
      Matthias Schiffer authored
      Calling functions like recv() with a NULL buffer is not explicitly
      allowed by the POSIX standard, so it must be avoided to be portable
      across different libc implementations. Allocate an initial buffer before
      handling requests, and also pass this buffer to the peek recv() call.
      
      Fixes: 531937cf ("gluon-neighbour-info: fix broken output with large results")
      Unverified
      51a17084
  2. Oct 07, 2021
    • Matthias Schiffer's avatar
      Set PKG_VERSION in gluon.mk · f419db58
      Matthias Schiffer authored
      This removes PKG_VERSION and PKG_RELEASE from most Makefiles, as the
      value was never useful for Gluon packages; instead, PKG_VERSION is set
      to 1 in gluon.mk.
      
      It also removes two other weird definitions:
      
      - gluon-iptables-clamp-mss-to-pmtu replicating the old PKG_VERSION logic
        from gluon-core, but without the fixed PKG_BUILD_DIR to prevent
        unnessary rebuilds
      - gluon-hoodselector set GLUON_VERSION=3
      f419db58
  3. Oct 04, 2021
    • T-X's avatar
      gluon-neighbour-info: fix broken output with large results (#2322) · 531937cf
      T-X authored
      
      Currently a buffer with a fixed size of 8192 bytes is used. However the
      result can potentially be larger, which leads to a truncated JSON
      output on stdout. UDP packets, without compression and with IP
      fragmentation, can be up to 64KiB large.
      
      Instead of using a fixed size buffer on the stack ask the kernel first
      about the size of the UDP data and allocate a buffer of appropriate size
      on the heap before receiving the UDP data.
      
      The issue was observed with a custom respondd provider.
      
      Signed-off-by: default avatarLinus Lüssing <linus.luessing@c0d3.blue>
      Unverified
      531937cf
  4. Mar 15, 2021
  5. Jan 09, 2020
  6. Apr 21, 2019
  7. Apr 13, 2018
  8. Mar 09, 2018
  9. Mar 08, 2018
  10. Mar 07, 2018
  11. Nov 25, 2017
  12. Feb 10, 2017
  13. Jan 17, 2017
  14. Jul 25, 2016
  15. Jul 10, 2016
  16. Apr 02, 2016
  17. Feb 02, 2016
  18. Dec 18, 2015
  19. Oct 14, 2015
  20. Jul 09, 2015
  21. Jul 06, 2015
  22. Sep 06, 2014
  23. Aug 28, 2014
Loading