[OpenSIPS-Devel] [OpenSIPS/opensips] 58a944: usrloc User-Agent filtering: Fix memory corruption
Liviu Chircu
liviu at opensips.org
Thu Jun 16 19:11:11 CEST 2016
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 58a944cddbfbe7aab47a3e296d8aba5d36454a1e
https://github.com/OpenSIPS/opensips/commit/58a944cddbfbe7aab47a3e296d8aba5d36454a1e
Author: Liviu Chircu <liviu at opensips.org>
Date: 2016-06-16 (Thu, 16 Jun 2016)
Changed paths:
M modules/registrar/lookup.c
M modules/usrloc/ucontact.c
Log Message:
-----------
usrloc User-Agent filtering: Fix memory corruption
The "ua_re_check" macro added by commit e5cb9805bc is broken in several ways:
* unsafe read operation on shared memory
* unsafe write operation on shared memory
* incorrectly handled error case, without restoring the backup byte
This patch corrects the above issues by extending the user_agent buffer.
More information about the Devel
mailing list