commit | 08299a9574594a0079bdf696e40c48457b38fd71 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Jul 05 21:27:13 2019 +0200 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat Jul 06 21:25:31 2019 +0200 |
tree | bb2d16029c7425f2314ec2dee3d5c17f4c3b84d7 | |
parent | 367b510aa080c47c25027982def7f4cf27ab341c [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>