Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3643

hdfsJniHelper.c unchecked string pointers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.0.0-alpha
    • None
    • libhdfs

    Description

          str = methSignature;
          while (*str != ')') str++;
          str++;
          returnType = *str;
      

      This loop needs to check for '\0'. Also the following if/else if/else if cascade doesn't handle unexpected values.

      Attachments

        1. HDFS-3643.02.patch
          3 kB
          Allen Wittenauer
        2. hdfs3643-2.txt
          3 kB
          Andy Isaacson
        3. hdfs-3643-1.txt
          3 kB
          Andy Isaacson
        4. hdfs3643.txt
          2 kB
          Andy Isaacson

        Activity

          People

            adi2 Andy Isaacson
            adi2 Andy Isaacson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: