HomeFreeBSD

opensm: Use precision specifier for scanf

Description

opensm: Use precision specifier for scanf

If user input a string larger than the length of buffer, the stack
memory will be corrupted.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
slavashAuthored on
Parents
rS341540: libibverbs: Fix memory leak in ibv_read_sysfs_file().
Branches
Unknown
Tags
Unknown