Tracking bug for static code analysis fixes. (LU-2753)

[LU-1857] Coverity: Fix 'Unbounded source buffer' errors Created: 07/Sep/12  Updated: 30/Aug/23  Resolved: 29/Oct/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0, Lustre 2.1.3
Fix Version/s: Lustre 2.4.0

Type: Technical task Priority: Minor
Reporter: Sebastien Buisson (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: build, coverity

Issue Links:
Related
is related to LU-17000 Coverity static analysis issues Open
Rank (Obsolete): 4351

 Description   

Thanks to the Coverity tool, we found some memory corruptions in the Lustre code, and more specifically cases of unbounded source buffers.
This is typically where we should use strncpy() instead of strcpy() or snprintf() instead of sprintf() because the size of the source buffer is not known.

I will propose a patch to address the issues.



 Comments   
Comment by Sebastien Buisson (Inactive) [ 07/Sep/12 ]

The patch is available here:
http://review.whamcloud.com/3904

Could you please review it?

Comment by Peter Jones [ 07/Sep/12 ]

Thanks for the patch Sebastien. Bob can you please take care of getting this landed?

Comment by Peter Jones [ 29/Oct/12 ]

Landed for 2.4

Generated at Sat Feb 10 01:20:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.