[riot-commits] [RIOT-OS/RIOT] ae367e: net/emcute: check value of length field before use

Martine Lenders authmillenon at gmail.com
Wed Jun 28 23:27:54 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ae367e5537eec6f5e513db57a11d8a689a2dad97
      https://github.com/RIOT-OS/RIOT/commit/ae367e5537eec6f5e513db57a11d8a689a2dad97
  Author: Hauke Petersen <hauke.petersen at fu-berlin.de>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M sys/include/net/emcute.h
    M sys/net/application_layer/emcute/emcute.c

  Log Message:
  -----------
  net/emcute: check value of length field before use


  Commit: 91ff52a897bff6350e701224a67b336beb5e6f0e
      https://github.com/RIOT-OS/RIOT/commit/91ff52a897bff6350e701224a67b336beb5e6f0e
  Author: Hauke Petersen <hauke.petersen at fu-berlin.de>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M sys/net/application_layer/emcute/emcute.c

  Log Message:
  -----------
  net/emcute: use size_t for length comparisons


  Commit: 9ec615f8c2e450caed2e3618de35e8c5bc291153
      https://github.com/RIOT-OS/RIOT/commit/9ec615f8c2e450caed2e3618de35e8c5bc291153
  Author: Hauke Petersen <hauke.petersen at fu-berlin.de>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M sys/include/net/emcute.h

  Log Message:
  -----------
  net/emcute: added doc for maximum buffer size

On 16- and 8-bit platforms, ssizte_t can only hold 2 byte (maximum
of 32767). So when calling sock_udp_recv() we can not pass it a
buffer exeeding this size without potially running into overflow
issues...


  Commit: 5505c800f2979bfc09bd906f5427194764d049db
      https://github.com/RIOT-OS/RIOT/commit/5505c800f2979bfc09bd906f5427194764d049db
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M sys/include/net/emcute.h
    M sys/net/application_layer/emcute/emcute.c

  Log Message:
  -----------
  Merge pull request #7228 from haukepetersen/fix_emcute_lenchecking

net/emcute: check value of length field before use


Compare: https://github.com/RIOT-OS/RIOT/compare/524f2e57bde3...5505c800f297


More information about the commits mailing list