[riot-commits] [RIOT-OS/RIOT] 3b76a2: fmt: fix fmt_s32_dec() and fmt_s64_dec() sign bit ...

Martine Lenders authmillenon at gmail.com
Thu Jan 17 11:28:02 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 3b76a2c2be5d12b6483f3c1efa481ca9c595ef5e
      https://github.com/RIOT-OS/RIOT/commit/3b76a2c2be5d12b6483f3c1efa481ca9c595ef5e
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2019-01-16 (Wed, 16 Jan 2019)

  Changed paths:
    M sys/fmt/fmt.c

  Log Message:
  -----------
  fmt: fix fmt_s32_dec() and fmt_s64_dec() sign bit handling

"val = -val" causes UB for INTMIN, thus explicitly cast to unsigned.


  Commit: aef03e620a165e4e01d4644bf072ed5cb9341c0c
      https://github.com/RIOT-OS/RIOT/commit/aef03e620a165e4e01d4644bf072ed5cb9341c0c
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M sys/fmt/fmt.c

  Log Message:
  -----------
  Merge pull request #10784 from kaspar030/fix_fmt_signed_conversion

fmt: fix fmt_s32_dec() and fmt_s64_dec() sign bit handling


Compare: https://github.com/RIOT-OS/RIOT/compare/d34bf526c125...aef03e620a16
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list