[OpenSIPS-Devel] [OpenSIPS/opensips] 524c62: [pua] fix the computing of presentity ID (pres_id)
Bogdan Andrei IANCU
noreply at github.com
Tue Jan 31 09:05:18 UTC 2023
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: 524c62fb47d15084b9c6674db2f502aaeb09f4da
https://github.com/OpenSIPS/opensips/commit/524c62fb47d15084b9c6674db2f502aaeb09f4da
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: 60370c33f6f1a70f3355b39a05e444ffe05a6584
https://github.com/OpenSIPS/opensips/commit/60370c33f6f1a70f3355b39a05e444ffe05a6584
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: 341266419b6923e8483098e3bac42c74c1a87232
https://github.com/OpenSIPS/opensips/commit/341266419b6923e8483098e3bac42c74c1a87232
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/fff1381a1065...341266419b69
More information about the Devel
mailing list