Files
ofono/unit
Denis Kenzior 84a449694f smsutil: Use a safer strlcpy
sms_address_from_string is meant as private API, to be used with string
form addresses that have already been sanitized.  However, to be safe,
use a safe version of strcpy to avoid overflowing the buffer in case the
input was not sanitized properly.  While here, add a '__' prefix to the
function name to help make it clearer that this API is private and
should be used with more care.

Origin: upstream, https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=8fa1fdfcb54e1edb588c6a5e2688880b065a39c9
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2255387
Bug-UBports: https://gitlab.com/ubports/development/core/packaging/ofono/-/issues/2
2025-10-17 04:21:01 +08:00
..
2018-04-24 11:51:51 -05:00
2025-10-17 04:21:01 +08:00