<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8041</bug_id>
          
          <creation_ts>2015-07-22 18:35:23 +0000</creation_ts>
          <short_desc>dosfstools patches introduce coverity issues not there in upstream</short_desc>
          <delta_ts>2015-11-11 17:46:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Terri Oda">terri.oda</reporter>
          <assigned_to name="Beth Flanagan">elizabeth.flanagan</assigned_to>
          <cc>elizabeth.flanagan</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52531</commentid>
    <comment_count>0</comment_count>
    <who name="Terri Oda">terri.oda</who>
    <bug_when>2015-07-22 18:35:23 +0000</bug_when>
    <thetext>Scott Garman&apos;s patches to dosfstools are introducing code that static analysis has flagged as potential issues. 

It&apos;s all related to mkdosfs.c:

line 1445:
CID 294095 (#2 of 2): Buffer not null terminated (BUFFER_SIZE)
3. buffer_size: Calling strncpy with a source string whose length (11 chars) is greater than or equal to the size argument (11) will fail to null-terminate dos_name.

1572: 
CID 294100 (#2 of 2): Missing return statement (MISSING_RETURN)
5. missing_return: Arriving at the end of a function without returning a value.

1632:
CID 294097 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)
16. buffer_size_warning: Calling strncpy with a maximum size argument of 11 bytes on destination array entry-&gt;name of size 11 bytes might leave the destination string unterminated.

1697:
CID 294102 (#1 of 1): Resource leak (RESOURCE_LEAK)29. leaked_storage: Variable buffer going out of scope leaks the storage it points to.

1783:
CID 294096 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)
11. buffer_size_warning: Calling strncpy with a maximum size argument of 11 bytes on destination array entry-&gt;name of size 11 bytes might leave the destination string unterminated.

Here&apos;s the coverity link for more detail: https://cov.jf.intel.com/reports.htm#v14248/p10089

These may well be false positives, but since my email to Scott&apos;s Intel address bounced, I&apos;m not sure who to ask to look at these.  Guidance appreciated!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56393</commentid>
    <comment_count>1</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2015-11-11 17:46:12 +0000</bug_when>
    <thetext>Removing from Bugzilla.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>