Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7831

CodecUtil should not seek to negative offsets

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, 6.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      In case of truncated files whose length is less than the footer length, CodecUtil might throw confusing exceptions by trying to seek to negative offsets.

        Activity

        Hide
        jpountz Adrien Grand added a comment -

        Here is a patch.

        Show
        jpountz Adrien Grand added a comment - Here is a patch.
        Hide
        mikemccand Michael McCandless added a comment -

        +1

        Show
        mikemccand Michael McCandless added a comment - +1
        Hide
        thetaphi Uwe Schindler added a comment -

        +1

        Show
        thetaphi Uwe Schindler added a comment - +1
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 02490e30910c5f805f5b1df8320582a42212cb85 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=02490e3 ]

        LUCENE-7831: CodecUtil should not seek to negative offsets.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 02490e30910c5f805f5b1df8320582a42212cb85 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=02490e3 ] LUCENE-7831 : CodecUtil should not seek to negative offsets.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 9e1fcb0eb47637082d15700a92e52f0b1c155bc7 in lucene-solr's branch refs/heads/master from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9e1fcb0 ]

        LUCENE-7831: CodecUtil should not seek to negative offsets.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 9e1fcb0eb47637082d15700a92e52f0b1c155bc7 in lucene-solr's branch refs/heads/master from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9e1fcb0 ] LUCENE-7831 : CodecUtil should not seek to negative offsets.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 4d055f00bba9a745737e4b6c3f9dff06dd35aa2e in lucene-solr's branch refs/heads/branch_6_6 from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4d055f0 ]

        LUCENE-7831: CodecUtil should not seek to negative offsets.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 4d055f00bba9a745737e4b6c3f9dff06dd35aa2e in lucene-solr's branch refs/heads/branch_6_6 from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4d055f0 ] LUCENE-7831 : CodecUtil should not seek to negative offsets.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 5ba761bcf693f3e553489642e2d9f5af09db44cc in lucene-solr's branch refs/heads/master from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5ba761b ]

        LUCENE-7831: Move CHANGES entry to 6.6.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 5ba761bcf693f3e553489642e2d9f5af09db44cc in lucene-solr's branch refs/heads/master from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5ba761b ] LUCENE-7831 : Move CHANGES entry to 6.6.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 6e0ca59f0a565c01ce43fc82223806a170c84767 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6e0ca59 ]

        LUCENE-7831: Move CHANGES entry to 6.6.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 6e0ca59f0a565c01ce43fc82223806a170c84767 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6e0ca59 ] LUCENE-7831 : Move CHANGES entry to 6.6.

          People

          • Assignee:
            Unassigned
            Reporter:
            jpountz Adrien Grand
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development