[OpenSIPS-Devel] [OpenSIPS/opensips] 6b8b9e: pua: Fix some list management bugs; Improve code
Liviu Chircu
noreply at github.com
Wed Jul 15 08:34:31 EST 2020
Branch: refs/heads/3.0
Home: https://github.com/OpenSIPS/opensips
Commit: 6b8b9e3b74aeefb7b045bd7f75aea11190ea596f
https://github.com/OpenSIPS/opensips/commit/6b8b9e3b74aeefb7b045bd7f75aea11190ea596f
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-07-15 (Wed, 15 Jul 2020)
Changed paths:
M modules/pua/uri_list.h
Log Message:
-----------
pua: Fix some list management bugs; Improve code
* do not use strncmp() to compare "str" structs, since it may lead
to false positives (e.g. strncmp("foobar", "foo", 3) == 0). Use
str_match() or str_strcmp() instead.
* do not read memory after pkg_free() (severity: low, since it's PKG
memory, so reading "invalid" heap memory works anyway...)
* simplify list_pop() and list_free() code
(cherry picked from commit 5df8b636a15a799b5f1ab7a58ebe1c208ce49d2d)
More information about the Devel
mailing list