[riot-commits] [RIOT-OS/RIOT] c88838: gnrc_icmpv6_echo: avoid crashing when pktbuf full

Alexandre Abadie alexandre.abadie at inria.fr
Sat Jan 26 09:52:27 CET 2019


  Branch: refs/heads/2019.01-branch
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c88838f391539f9a0366cd85b1fdc54f62fda8d5
      https://github.com/RIOT-OS/RIOT/commit/c88838f391539f9a0366cd85b1fdc54f62fda8d5
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-25 (Fri, 25 Jan 2019)

  Changed paths:
    M sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c

  Log Message:
  -----------
  gnrc_icmpv6_echo: avoid crashing when pktbuf full

Once the packet buffer is full on heavy network load, gnrc_netif_hdr_build may return NULL. In that case, the following unchecked access to hdr->data leads to a crash.


  Commit: d2e116200e9753488b61feafc94a28c8423ada4b
      https://github.com/RIOT-OS/RIOT/commit/d2e116200e9753488b61feafc94a28c8423ada4b
  Author: Alexandre Abadie <alexandre.abadie at inria.fr>
  Date:   2019-01-26 (Sat, 26 Jan 2019)

  Changed paths:
    M sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c

  Log Message:
  -----------
  Merge pull request #10874 from gschorcht/gnrc_icmpv6_echo_fix

gnrc_icmpv6_echo: avoid crashing when pktbuf full [backport 2019.01]


Compare: https://github.com/RIOT-OS/RIOT/compare/b8565e492dda...d2e116200e97
      **NOTE:** GitHub Services has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      We will provide an alternative path for the email notifications by January 31st, 2019.


More information about the commits mailing list