[riot-commits] [RIOT-OS/RIOT] e5503d: gnrc_tcp: check if option length field is present ...

benpicco noreply at github.com
Tue Sep 17 23:22:54 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: e5503d62bf092300932dceabccbadb7c20b02e55
      https://github.com/RIOT-OS/RIOT/commit/e5503d62bf092300932dceabccbadb7c20b02e55
  Author: Sören Tempel <soeren+git at soeren-tempel.net>
  Date:   2019-09-16 (Mon, 16 Sep 2019)

  Changed paths:
    M sys/include/net/tcp.h
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c

  Log Message:
  -----------
  gnrc_tcp: check if option length field is present before accessing it

TCP options have up to three fields (kind, length, value). The
current code only checks for the presence of the first field. Before
accessing the second field (length) the code must ensure that a length
field is even present.


  Commit: 7a818f0433d65a272fe1363c811318490ff29967
      https://github.com/RIOT-OS/RIOT/commit/7a818f0433d65a272fe1363c811318490ff29967
  Author: benpicco <benpicco at googlemail.com>
  Date:   2019-09-17 (Tue, 17 Sep 2019)

  Changed paths:
    M sys/include/net/tcp.h
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_option.c

  Log Message:
  -----------
  Merge pull request #12249 from nmeum/pr/gnrc_tcp_option_length_access

gnrc_tcp: check if option length field is present before accessing it


Compare: https://github.com/RIOT-OS/RIOT/compare/f02095102fbb...7a818f0433d6


More information about the commits mailing list