Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-109

Return value of mkdirs() is not checked and no error handling occurs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.9
    • None
    • None
    • Revision: 1208077

    Description

      The code contains calls to mkdir() without checking its return value.

      Patch attached for classes:

      • apache-rat-plugin/src/main/java/org/apache/rat/mp/RatReportMojo.java
      • apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
      • apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportTest.java

      Attachments

        1. RAT106errorPatch.diff
          0.7 kB
          Philipp Ottlinger
        2. RAT109checkmkdirsReturnValue.patch
          2 kB
          Philipp Ottlinger

        Activity

          People

            Unassigned Unassigned
            pottlinger Philipp Ottlinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: