Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ibdiags: Fix buffer overflow in sa_report_err()
There are cases where sa_report_err() will overflow a buffer. The mad_err_str[] buffer in sa_report_err() needs to be increased to a size that can safely handle the possible error strings. Use of snprintf() would be an improvement as well. ib_mad_inv_field_str[] also needed a syntactical fix to separate two of the error strings. Signed-off-by: Mark Haywood <mark.haywood@oracle.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com>
- Loading branch information