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

read/write does not match for ccache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • security-libs
    • b25
    • generic
    • generic
    • Verified

      In CCacheOutputStream, when writing times int a ccache file, we have
              if (creds.starttime != null)
                  write32((int)(creds.starttime.getTime()/1000));
              else
                  write32(0);

              if (creds.renewTill != null)
                  write32((int)(creds.renewTill.getTime()/1000));
              else
                  write32(0);

      On the other hand, in CCacheInputStream, we directly read the integer and pass it to new KerberosTime(long). Therefore, null is changed to 1970/1/1 0:0:0.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: