[riot-commits] [RIOT-OS/RIOT] 2f94d6: gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_...

Cenk Gündoğan cnkgndgn at gmail.com
Thu Jan 7 19:33:18 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 2f94d669d74e0b66d4c87e3c33477c8167a4d13c
      https://github.com/RIOT-OS/RIOT/commit/2f94d669d74e0b66d4c87e3c33477c8167a4d13c
  Author: Johann Fischer <j.fischer at phytec.de>
  Date:   2016-01-07 (Thu, 07 Jan 2016)

  Changed paths:
    M sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c

  Log Message:
  -----------
  gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_realloc_data

This patch fixes overflow, which is caused by
(pkt->size - aligned_size). This happens if pkt->size and
new size are unaligned and the difference
between pkt->size and new size is less than four.


  Commit: d48a8230f9514a9affffefa2d5ca86238cc2148e
      https://github.com/RIOT-OS/RIOT/commit/d48a8230f9514a9affffefa2d5ca86238cc2148e
  Author: Martine Lenders <mlenders at inf.fu-berlin.de>
  Date:   2016-01-07 (Thu, 07 Jan 2016)

  Changed paths:
    M tests/unittests/tests-pktbuf/tests-pktbuf.c

  Log Message:
  -----------
  unittests: add unittests for overflow fix


  Commit: 461365f3904e004ffb783ce4d565665b83d3655d
      https://github.com/RIOT-OS/RIOT/commit/461365f3904e004ffb783ce4d565665b83d3655d
  Author: Cenk Gündoğan <cnkgndgn at gmail.com>
  Date:   2016-01-07 (Thu, 07 Jan 2016)

  Changed paths:
    M sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c
    M tests/unittests/tests-pktbuf/tests-pktbuf.c

  Log Message:
  -----------
  Merge pull request #4602 from jfischer-phytec-iot/fix at of-gnrc_pktbuf_realloc_data

gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_realloc_data


Compare: https://github.com/RIOT-OS/RIOT/compare/31e40467c3dd...461365f3904e


More information about the commits mailing list