ICEpdf
  1. ICEpdf
  2. PDF-625

SeekableByteArrayInputStream not thread safe

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      loading an url with -Dorg.icepdf.core.streamcache.enabled=false

      Description

      While working though a threading test case that was using the above environment I came accross a locking issue with the SeekableByteArrayInputStream. Basically it was not updated with PDF-13 when a fixes where make for RandomAcessFileInputStream.

        Activity

        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37289 Wed Jul 31 16:48:15 MDT 2013 patrick.corless PDF-625 synchronized the init method so that it could be properly initialized when accessed from multiple threads.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/Indexed.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37288 Wed Jul 31 16:48:05 MDT 2013 patrick.corless PDF-625 synchronized the init method so that it could be properly initialized when accessed from multiple threads.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/Indexed.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37287 Wed Jul 31 16:30:06 MDT 2013 patrick.corless PDF-625 updated inputStream lock/releae with a reenterant lock.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/io/SeekableByteArrayInputStream.java
        Patrick Corless made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Updated checked into trunk and branch.

        Show
        Patrick Corless added a comment - Updated checked into trunk and branch.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37286 Wed Jul 31 16:25:12 MDT 2013 patrick.corless PDF-625 updated inputStream lock/releae with a reenterant lock.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/io/SeekableByteArrayInputStream.java
        Hide
        Patrick Corless added a comment -

        Upudated the SeekableBytleArrayInputStream to use the rentrant lock construct.

        Show
        Patrick Corless added a comment - Upudated the SeekableBytleArrayInputStream to use the rentrant lock construct.
        Patrick Corless created issue -

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: