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

SubjectDomainCombiner fails to check for null in combineJavaxPolicy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 1.4.2_06, 6
    • security-libs
    • beta
    • generic, x86
    • generic, solaris_2.5.1

        1) Set security property auth.policy.provider to a valid JAAS policy provider
        2) In a custom classloader, creates protection domains with null permission sets - and ensure these protection domains are on the stack
        3) In the test case, does Subject.getSubject(ACC), this will trigger SubjectDomainCombiner.combineJavaxPolicy to be called. When it reaches the protection domain with a null permission set, it'll bomb out with NullPointerException

              claisunw Charlie Lai (Inactive)
              mmma Marvin Ma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: