summaryrefslogtreecommitdiffstats
path: root/tests/a5
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-06-06 16:11:32 +0200
committerOliver Smith <osmith@sysmocom.de>2019-06-07 11:01:51 +0200
commit186f87826608fe43060f446ae6d171cd7c56d27b (patch)
treebda352effc081a97888a3a899f90f1e75cce4628 /tests/a5
parent8c9befeaee7df8758a0584a7fdc988ab9afb14af (diff)
gsm48_decode_bcd_number2: fix ENOSPC edge case
Return ENOSPC if the decoding buffer is one byte too small, instead of returning 0 and silently truncating the string. Add a new "truncated" variable to detect if the loop breaks in the final iteration. The string is not truncated if there is exactly one 0xf ('\0') higher nibble remaining. This is covered by the existing test case "long 15-digit (maximum) MSISDN, limited buffer". Related: OS#4049 Change-Id: Ie05900aca50cc7fe8a45d17844dbfcd905fd82fe
Diffstat (limited to 'tests/a5')
0 files changed, 0 insertions, 0 deletions