Chris Nauroth created HADOOP-9110:
-------------------------------------

             Summary: winutils ls off-by-one error indexing MONTHS array can 
cause access violation
                 Key: HADOOP-9110
                 URL: https://issues.apache.org/jira/browse/HADOOP-9110
             Project: Hadoop Common
          Issue Type: Bug
          Components: util
    Affects Versions: 1-win, trunk-win
            Reporter: Chris Nauroth
            Assignee: Chris Nauroth


In ls.c, the LsPrintLine function uses the wMonth field of a SYSTEMTIME struct 
to index into MONTHS, an array of 12 elements containing string representations 
of the months.  The wMonth field is 1-based (1=January), but indexing into an 
array is zero-based.  This gives the wrong month, and since we just crossed 
into month 12, it also has started causing an access violation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to