[OpenSIPS-Devel] [OpenSIPS/opensips] bd5f7d: [pua] fix the computing of presentity ID (pres_id)
Bogdan Andrei IANCU
noreply at github.com
Tue Jan 31 09:04:44 UTC 2023
Branch: refs/heads/3.3
Home: https://github.com/OpenSIPS/opensips
Commit: bd5f7da2a6a93e418d00a73353c58e4b70a9f57e
https://github.com/OpenSIPS/opensips/commit/bd5f7da2a6a93e418d00a73353c58e4b70a9f57e
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M modules/pua/hash.c
M modules/pua/hash.h
M modules/pua/pua.c
Log Message:
-----------
[pua] fix the computing of presentity ID (pres_id)
- be sure the hash size does not overflow (on user setting), as it has to fit on half long size
- when computing pres_id, be sure to cast to long to avoid premature overflow
- when incrementing local_index, be sure it does no overflow half long size
(cherry picked from commit ed8bf4d47a5302b74006ce0312797928fc843e98)
Commit: f755eee599cbe1d85db77587e254c900067761e5
https://github.com/OpenSIPS/opensips/commit/f755eee599cbe1d85db77587e254c900067761e5
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M modules/pua/hash.h
Log Message:
-----------
[pua] force pres_id a unsigned_int during calculation
To avoid any issues due to "singed" overflowing
(cherry picked from commit ac99224ef22ece40e3dcd11417712db84d910bb7)
Commit: 92cb2c76d1dea753747683484ab91e00e9ef75eb
https://github.com/OpenSIPS/opensips/commit/92cb2c76d1dea753747683484ab91e00e9ef75eb
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M modules/pua/hash.c
M modules/pua/pua.c
Log Message:
-----------
[pua] Fix silly mixing of bits versus bytes in sizeof()
Related to ed8bf4d47a5302b74006ce0312797928fc843e98
(cherry picked from commit 5610c03fb14ada7e28f4a05b3928020883bf0773)
Compare: https://github.com/OpenSIPS/opensips/compare/596755f0ec3a...92cb2c76d1de
More information about the Devel
mailing list