Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-740

Coverity static analysis: Dereference null return value in EntityUtil (Elytron)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Beta15
    • None
    • None

      Coverity static-analysis scan found possible call on null object in EntityUtil.encodeAlgorithmIdentifier method:
      https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=5760335&defectInstanceId=1541381&mergedDefectId=1369303

      In the call
      encodeAlgorithmIdentifier(encoder, algorithmOid(algorithm), omitParametersField);
      the algorithmOid() may return null (look at Entity class).
      Then the encodeAlgorithmIdentifier calls DerEncoder.encodeObjectIdentifier where on the given String is called length() method without a null check.

              rhn-support-ivassile Ilia Vassilev
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: