summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/Makefile.am
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-08-11 13:58:57 +0200
committerHarald Welte <laforge@gnumonks.org>2018-08-11 14:09:14 +0000
commit1d68468636e789555bee99e1d040b0648d1f02c3 (patch)
tree58c6294d763d7efa83618656b6a5292d816e1942 /src/host/layer23/src/Makefile.am
parentd68833cd854b0a47876fea0a180a21c24916c392 (diff)
layer23: Fix possible buffer overflow writing NUL beyond end of string
settings.c: In function ‘gsm_random_imei’: settings.c:188:26: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(rand + 8, "%07ld", random() % 10000000); ^ settings.c:188:2: note: ‘sprintf’ output between 8 and 9 bytes into a destination of size 8 sprintf(rand + 8, "%07ld", random() % 10000000); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Id949487111235cd4af5ff068f1dce2f4b0801480
Diffstat (limited to 'src/host/layer23/src/Makefile.am')
0 files changed, 0 insertions, 0 deletions