Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-510

Fix for GridFS file seek if page == NULL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.3.0-beta0
    • GridFS
    • None

    Description

      The latest gridfs fix doesn't cover case when page == NULL.

       
      if (offset / file->chunk_size != file->pos / file->chunk_size) {
        ...
      } else {
         _mongoc_gridfs_file_page_seek (file->page, offset % file->chunk_size);
      }
       

      If page == NULL, pos == 0 and offset < chunk_size it will try to seek in NULL page

      Attachments

        Issue Links

          Activity

            People

              kyle.suarez@mongodb.com Kyle Suarez
              samantha.ritter@mongodb.com Samantha Ritter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: