Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8728

[C++] Bitmap operation may cause buffer overflow

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Happen to find this issue when refining bitmap operation, this code may overflow out buffer. Should be "(length + left_offset % 8)";
      Improve unit test to test large offset values can trigger the bug.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yibocai Yibo Cai Assign to me
            yibocai Yibo Cai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m

                Slack

                  Issue deployment