Skip to content

Commit 9b65c2a

Browse files
committed
enforced condition evaluation order
1 parent 4b9325c commit 9b65c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Asn1Parser/Asn1Reader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void parseNestedType() {
173173
// -- if bit 5 is set to "0", attempt to resolve nested types only for UNIVERSAL tags.
174174
// -- if the value is implicitly tagged, it cannot contain nested types.
175175
// -- some universal types cannot include nested types: skip them in advance.
176-
if (_excludedTags.Contains(Tag) || PayloadLength < 2 || Tag > 127 & Tag < 160) {
176+
if (_excludedTags.Contains(Tag) || PayloadLength < 2 || (Tag > 127 & Tag < 160)) {
177177
return;
178178
}
179179
Int64 start = PayloadStartOffset;

0 commit comments

Comments
 (0)