summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-timer.h
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-08-22 08:48:46 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:55 +0100
commita373a141afbf997811de92cb4bce81622ccc2444 (patch)
tree3ef4a606be4a807506a9394b6481e8bd5019749f /ctl-lib/ctl-timer.h
parent2e1e2ac4a61784d9cfd072e824d4aafd1d2b2f2a (diff)
ctl-lua: Fixed memory corruption
fixed a malloc random crash when loading the configuration files. A write of one byte was done outside of an allocated area. Namely, strncat always writes n+1 bytes, thus a best practice is to always calculate n as this: buffer_size-strlen(s)-1 Change-Id: Icb568f324d466fc6eef40c3e251ce6b8a7006d95 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-timer.h')
0 files changed, 0 insertions, 0 deletions