Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3576

Potential overflow for lifetime calculation in STSClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.4.1
    • WS-* Components
    • None

    Description

      This code performs integer multiply and then converts the result to a long:
      expirationTime.setTime(creationTime.getTime() + (ttl * 1000));

      Fix:
      expirationTime.setTime(creationTime.getTime() + (ttl * 1000L));

      Attachments

        1. STSClient.patch
          1 kB
          Oliver Wulff
        2. patch.diff
          0.3 kB
          Oliver Wulff

        Activity

          People

            cschneider Christian Schneider
            owulff Oliver Wulff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: