Package org.bouncycastle.bcpg.test
Class UserAttributeSubpacketInputStreamTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.bcpg.test.AbstractPacketTest
org.bouncycastle.bcpg.test.UserAttributeSubpacketInputStreamTest
- All Implemented Interfaces:
org.bouncycastle.util.test.Test
Regression test for the unbounded user-attribute subpacket allocation: a crafted 4-octet length
header must be rejected against the absolute MAX_SUBPACKET_LEN cap before any body buffer is
allocated, rather than relying on the StreamUtil.findLimit() hint (which is ~heap-sized for the
non-seekable streams used during packet parsing).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.util.test.SimpleTest
org.bouncycastle.util.test.SimpleTest.TestExceptionOperation -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bouncycastle.bcpg.test.AbstractPacketTest
isEncodingEqual, isEncodingEqual, isEncodingEqual, isEncodingEqual, isFalse, isFalse, isNotNull, isNotNull, isNull, isNullMethods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests, testException
-
Constructor Details
-
UserAttributeSubpacketInputStreamTest
public UserAttributeSubpacketInputStreamTest()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.bouncycastle.util.test.Test- Specified by:
getNamein classorg.bouncycastle.util.test.SimpleTest
-
performTest
- Specified by:
performTestin classorg.bouncycastle.util.test.SimpleTest- Throws:
Exception
-
main
-