Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8260695

The java.awt.color.ICC_Profile#getData/getData(int) are not thread safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11, 17
    • Fix Version/s: 17
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      b11
    • CPU:
      generic
    • OS:
      generic

      Description

      Both methods are implemented in a similar way.
       1. Requests the size of the profile/tag data
       2. Creates an array of the correct size
       3. Requests the data and copy it to the array

      If the data will be changed concurrently between steps 2. and 3. then we will get a mismatch between the array and copied data.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: