aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocodec.pc.in
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-11-18 23:07:38 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-11-21 13:29:02 +0000
commitebd3cddb4c75b284b0d3345ab81980f8f4b44b62 (patch)
treeb69acdd4353b734c324f797fb5c89419fb1f1f4e /libosmocodec.pc.in
parentfe1ed39846c6537ebfe19d22500ee2e38587c143 (diff)
osmo_strlcpy: sanitize: don't memcpy from NULL src even if len is 0
Some callers pass NULL and len == 0. The semantics are that we then nul-terminate an emtpy string. Avoid a sanitizer warning by not calling memcpy() for the NULL case. Change-Id: I883048cf2807e606c6481634dbd569fc12aed889
Diffstat (limited to 'libosmocodec.pc.in')
0 files changed, 0 insertions, 0 deletions