[riot-commits] [RIOT-OS/RIOT] f4fa19: gnrc_netif: properly initialize address in gnrc_ne...

Martine Lenders noreply at github.com
Mon Aug 9 18:06:27 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f4fa197951f11b16121da19df73647b4e2991d88
      https://github.com/RIOT-OS/RIOT/commit/f4fa197951f11b16121da19df73647b4e2991d88
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M sys/net/gnrc/netif/gnrc_netif.c

  Log Message:
  -----------
  gnrc_netif: properly initialize address in gnrc_netif_ipv6_add_prefix()

Initialize addr with 0 first.
Otherwise if prefix is < 64 there will be random bits of stack memory
in the bits of the address that are neither touched by ipv6_addr_set_aiid()
nor ipv6_addr_init_prefix().


  Commit: 5d1c8e2643f873b3c6252c19e3f48df709c1c9c7
      https://github.com/RIOT-OS/RIOT/commit/5d1c8e2643f873b3c6252c19e3f48df709c1c9c7
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M sys/net/gnrc/netif/gnrc_netif.c

  Log Message:
  -----------
  Merge pull request #16718 from benpicco/gnrc_netif_ipv6_add_prefix-fix

gnrc_netif: properly initialize address in gnrc_netif_ipv6_add_prefix()


Compare: https://github.com/RIOT-OS/RIOT/compare/7ff41082633b...5d1c8e2643f8


More information about the commits mailing list