[riot-commits] [RIOT-OS/RIOT] 9e91d2: net/gnrc/tcp: fix uninitialized memory access

benpicco noreply at github.com
Tue Aug 20 15:37:19 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 9e91d21625867f73825c3fc61588749118ad1a6f
      https://github.com/RIOT-OS/RIOT/commit/9e91d21625867f73825c3fc61588749118ad1a6f
  Author: Sören Tempel <soeren+git at soeren-tempel.net>
  Date:   2019-08-12 (Mon, 12 Aug 2019)

  Changed paths:
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c

  Log Message:
  -----------
  net/gnrc/tcp: fix uninitialized memory access

>From the gnrc_pktbuf_mark documentation:

	    It's not guaranteed that `result->data` points to the
	    same address as the original `pkt->data.

Thus it should be necessary to update the `hdr` pointer.


  Commit: 20dec77e39cd68b5915b6a13b2dcae2bb2f2da2a
      https://github.com/RIOT-OS/RIOT/commit/20dec77e39cd68b5915b6a13b2dcae2bb2f2da2a
  Author: benpicco <benpicco at googlemail.com>
  Date:   2019-08-20 (Tue, 20 Aug 2019)

  Changed paths:
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c

  Log Message:
  -----------
  Merge pull request #11999 from nmeum/pr/gnrc_tcp_mark_update

net/gnrc/tcp: fix invalid read


Compare: https://github.com/RIOT-OS/RIOT/compare/f0272ed262f9...20dec77e39cd


More information about the commits mailing list