summaryrefslogtreecommitdiffstats
path: root/src/gsm/a5.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-01-20 10:37:49 +0100
committerHarald Welte <laforge@gnumonks.org>2019-01-22 14:53:46 +0000
commit1c3bae138cea1dbde480ce4382120034eb769e82 (patch)
treefc297ba07badb2ae23fa0a93e00457c50b64209b /src/gsm/a5.c
parent1317771c9340a9fdc86911206cdc8719a3d2bfe6 (diff)
constrain gsm48_generate_mid() output array bounds
The longest BCd-digit type identity is the IMEISV with 16, so there's no point in trying to parse up to 255 decimal digits, which will do nothing but to overflow the caller-provided output buffer. Let's also clearly define the required minimum size of the output buffer and add a reltead #define for it. Change-Id: Ic8488bc7f77dc9182e372741b88f0f06100dddc9
Diffstat (limited to 'src/gsm/a5.c')
0 files changed, 0 insertions, 0 deletions