aboutsummaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-05 21:27:13 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-06 21:25:31 +0200
commit5375ee508fead38c733a56b394db7bae86435390 (patch)
treebb2d16029c7425f2314ec2dee3d5c17f4c3b84d7 /test/py
parent1f83431f0053f6fb20c511c391ffc687433848cf (diff)
disk: efi: buffer overflow in part_get_info_efi()
In part_get_info_efi() we use the output of print_efiname() to set info->name[]. The size of info->name is PART_NAME_LEN = 32 but print_efiname() returns a string with a maximum length of PARTNAME_SZ + 1 = 37. Use snprintf() instead of sprintf() to avoid buffer overflow. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'test/py')
0 files changed, 0 insertions, 0 deletions