Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-1

Recylce bin can erroneously overwrite live data entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • jcs-1.2.7.9
    • Indexed Disk Cache
    • None

    Description

      There is a bug in the SortedPreferrentialArray in which after the Recyclye bin has been filled, and a spot in the bin is requested that is larger than the largest element, the last element in the array is returned. If the last recycle bin spot is not actually the last element in the data file, the element after the recycle bin element will be partially overwritten with the new data. That element will no longer be valid, which will eventually cause the entire cache to be reset.

      Attachments

        1. recycleBin.patch
          9 kB
          Brian Crow

        Issue Links

          Activity

            People

              asmuts Aaron Smuts
              bcrow Brian Crow
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: