1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/net
Martine Lenders ea1708b402 gnrc_ipv6_ext: don't read from pkt->data after _demux()
`_demux()` might change `pkt->data` in all kind of ways (moving it due
to `gnrc_pktbuf_mark()`, though unlikely; releasing it, because e.g. it
starts with a fragment header that marks a fragmented packet containing
only one fragment, etc.) so accessing the pointer *after* calling
`_demux()` is somewhat playing with fire. This change avoids this by
storing the value of `ext_hdr->nh` (all we are interested in here) in a
temporary variable that then is used to set the out-parameter `nh`.

`protnum` needs to be unchanged before the call to `_demux()` as it was
set by the previous iteration and determines what extension header
actually is handled.
2019-05-24 22:11:22 +02:00
..
application_layer Merge pull request #11445 from miri64/gcoap/fix/rm-deprecated 2019-05-03 13:44:02 -04:00
ble Merge pull request #11288 from haukepetersen/opt_skald_movetoblefolder 2019-03-26 23:56:28 +01:00
crosslayer sys/net: NETOPT_MAX_{PACKET_SIZE -> PDU_SIZE} 2019-02-18 20:15:08 +01:00
gnrc gnrc_ipv6_ext: don't read from pkt->data after _demux() 2019-05-24 22:11:22 +02:00
link_layer l2util: initial import 2019-03-26 21:37:20 +01:00
netdev_test sys/net: iolist updates 2018-03-06 14:00:32 +01:00
network_layer ipv6_ext: remove empty, unused module 2018-10-25 11:12:14 +02:00
routing sys: add missig <string.h> includes 2018-09-20 23:47:40 +02:00
sock sock_util: Limit recursion in str2ep 2018-07-20 11:48:29 +02:00
transport_layer sys: fix doxygen grouping 2018-06-11 19:12:02 +02:00
doc.txt doc: add net to sys group 2015-08-30 14:00:33 +02:00