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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6524</bug_id>
          
          <creation_ts>2009-02-03 00:16:29 +0000</creation_ts>
          <short_desc>&quot;Use of uninitialized value / substr outside of string&quot; errors filling server logs</short_desc>
          <delta_ts>2009-03-13 14:51:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.8.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.8.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Thereaux">ot</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23407</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2009-02-03 00:16:29 +0000</bug_when>
    <thetext>The following errors are not critical to the function of the validator, but cause countless lines of error output to apache&apos;s error log. They should be fixed/muted.

# cat error.log | grep &quot;[error]&quot; | sed &apos;s/.*client.*] //&apos; | sed &apos;s|, referer: http://validator.w3.org/||&apos; | head -100000 | sort | uniq -c | sort -nr | head

  63640 check: Use of uninitialized value $line in length at /usr/local/validator/httpd/cgi-bin/check line 1720.
  26691 check: Use of uninitialized value $line in length at /usr/local/validator/httpd/cgi-bin/check line 1727.
   1735 check: substr outside of string at /usr/local/validator/httpd/cgi-bin/check line 2040.
   1735 check: substr outside of string at /usr/local/validator/httpd/cgi-bin/check line 2016.
   1590 check: Use of uninitialized value $line in length at /usr/local/validator/httpd/cgi-bin/check line 1739.
   1531 check: Use of uninitialized value $line in substr at /usr/local/validator/httpd/cgi-bin/check line 1739.
    952 File does not exist: /usr/local/validator/htdocs/favicon.ico
    171 check: Use of uninitialized value $line in substr at /usr/local/validator/httpd/cgi-bin/check line 1747.
    171 check: substr outside of string at /usr/local/validator/httpd/cgi-bin/check line 1742.
    170 check: Use of uninitialized value $line in length at /usr/local/validator/httpd/cgi-bin/check line 1724.

Line numbers relevant only to 0.8.4 release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23408</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2009-02-03 00:43:40 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt;   63640 check: Use of uninitialized value $line in length at
&gt; /usr/local/validator/httpd/cgi-bin/check line 1720.
&gt;   26691 check: Use of uninitialized value $line in length at
&gt; /usr/local/validator/httpd/cgi-bin/check line 1727.

These two seem to be particularly acute for cases of errors in DTD (*cough* SVG 1.1 Basic *cough*) where the parser reports errors at line numbers beyond the number of lines in the actual document. Fixing this with a test on whether the document is actually that long.

Also fixing a couple of similar issues in the detection of doctypeless documents.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>