dfu: do stringop with termination character 76/222176/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Jan 2020 06:10:49 +0000 (15:10 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Jan 2020 06:10:51 +0000 (15:10 +0900)
commit7062cae242638f20b61cda27f10a67b54879e427
tree03b9fcab2f95459f72120583b1aefd54a63ea605
parent2b507f419bfe606103e1f680af31b9838f8f919d
dfu: do stringop with termination character

Doing string operation with strlen() result, there is possibilty
of omission of termination character. Do stringop with termination
character with strlen() + 1. The destination buffer is allocated
sum of all strlen() and 1, there is no overflow.

Change-Id: I35627dbbb0ac72bc58398ccfffa43802729c5b85
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/dfu.c