RFR: 8313226: Redundant condition test in X509CRLImpl

John Jiang jjiang at openjdk.org
Thu Jul 27 04:08:06 UTC 2023


if ((nextByte == DerValue.tag_SequenceOf)
        && (! ((nextByte & 0x0c0) == 0x080))) {
    ...
    ...
}

If `nextByte` is `DerValue.tag_SequenceOf`, exactly `0x30`, then the test after `&&` should always be true.

-------------

Commit messages:
 - 8313226: Redundant condition test in X509CRLImpl

Changes: https://git.openjdk.org/jdk/pull/15051/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15051&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8313226
  Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/15051.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15051/head:pull/15051

PR: https://git.openjdk.org/jdk/pull/15051


More information about the security-dev mailing list