[OpenSIPS-Devel] [OpenSIPS/opensips] b11ce9: drouting: Fix out-of-bound initialization
Bogdan Andrei IANCU
bogdan at opensips.org
Sat Feb 4 11:50:15 EST 2017
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: b11ce9723f1ca43cb7646b96e51dfa306a6280d7
https://github.com/OpenSIPS/opensips/commit/b11ce9723f1ca43cb7646b96e51dfa306a6280d7
Author: Le Roy Christophe <c.leroy at alphalink.fr>
Date: 2017-02-03 (Fri, 03 Feb 2017)
Changed paths:
M modules/drouting/routing.c
Log Message:
-----------
drouting: Fix out-of-bound initialization
Upon load/reload of drouting tables, if parse_destination_list() needs to
increase destinations array size, it asks for a new array twice the size of
the previous one.
It memset() the newly allocated capacity, skipping memory that is to be filled
with already learnt destinations, but using the array size instead of the
remaining capacity.
This patch fixes the size for this memset().
Closes OpenSIPS/opensips#1039
Commit: fb0d97de8fff5525d87abf7782479a5efcd8728f
https://github.com/OpenSIPS/opensips/commit/fb0d97de8fff5525d87abf7782479a5efcd8728f
Author: Bogdan Andrei IANCU <bogdan at opensips.org>
Date: 2017-02-04 (Sat, 04 Feb 2017)
Changed paths:
M modules/drouting/routing.c
Log Message:
-----------
Merge pull request #1040 from c-leroy/master
drouting: Fix out-of-bound initialization
Compare: https://github.com/OpenSIPS/opensips/compare/dd41b34cbcc7...fb0d97de8fff
More information about the Devel
mailing list