[OpenSIPS-Devel] [OpenSIPS/opensips] 50e7f5: [pua] fix the computing of presentity ID (pres_id)
Bogdan Andrei IANCU
noreply at github.com
Tue Jan 31 09:06:54 UTC 2023
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: 50e7f586674995f01f2d7237e6818458f45b9fad
https://github.com/OpenSIPS/opensips/commit/50e7f586674995f01f2d7237e6818458f45b9fad
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: 2095069bbc08c3d77c294bba614ec7c441d1c699
https://github.com/OpenSIPS/opensips/commit/2095069bbc08c3d77c294bba614ec7c441d1c699
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: ab951740dd062c1d31dea68feb3bb7350d18afd7
https://github.com/OpenSIPS/opensips/commit/ab951740dd062c1d31dea68feb3bb7350d18afd7
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/b66b74b43439...ab951740dd06
More information about the Devel
mailing list