[OpenSIPS-Devel] [OpenSIPS/opensips] 095dc5: Fix reverse_hex2int() prototype

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 30 07:10:14 EST 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 095dc57300b9665b090e999a540db8b391f8d22e
      https://github.com/OpenSIPS/opensips/commit/095dc57300b9665b090e999a540db8b391f8d22e
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-01-30 (Tue, 30 Jan 2018)

  Changed paths:
    M forward.c
    M modules/dialog/dlg_handlers.c
    M modules/dialog/dlg_handlers.h
    M modules/nathelper/sip_pinger.h
    M modules/tm/t_lookup.c
    M ut.h

  Log Message:
  -----------
  Fix reverse_hex2int() prototype

As the computed value is an unsigned (as data size), it cannot be returned as int as it will overflow and get converted to a negative value. This will colide with the negative error ret code -1
Reported by Daniel Zanutti.




More information about the Devel mailing list