util: kernel: Get the name of smaps entry with limited width 30/280230/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 25 Aug 2022 05:11:42 +0000 (14:11 +0900)
committerDongwoo Lee <dwlee08@gmail.com>
Tue, 30 Aug 2022 07:10:49 +0000 (00:10 -0700)
commit13ab4024788b9b68cfef985e7286879805909b4e
treef7d906b13726077ad0b8f12e908a83f535e39e7f
parentcdf81502891c18db5ac00a98d194674093aa2dbb
util: kernel: Get the name of smaps entry with limited width

Since sscanf has no limitation for buffer width and thus it can cause
overflows for name buffer, this limits the number of reading
characters.

Change-Id: I83128e01d9b840d41bb14bfda022e27ee80dd78e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/util/kernel.c