mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-11 11:19:39 +02:00
Compare commits
No commits in common. "c8d6a3dc857b1e268cef4c3cbcf29d0ae3481947" and "7daa3783bc4ec4c1fb80fd53967864f0a7a1aea9" have entirely different histories.
c8d6a3dc85
...
7daa3783bc
10 changed files with 3 additions and 8 deletions
|
@ -5,6 +5,7 @@
|
|||
package org.pgpainless.bouncycastle.fuzzing
|
||||
|
||||
import com.code_intelligence.jazzer.api.FuzzedDataProvider
|
||||
import com.code_intelligence.jazzer.junit.DictionaryFile
|
||||
import com.code_intelligence.jazzer.junit.FuzzTest
|
||||
import org.bouncycastle.bcpg.ArmoredInputException
|
||||
import org.bouncycastle.bcpg.UnsupportedPacketVersionException
|
||||
|
@ -17,6 +18,8 @@ import java.io.IOException
|
|||
class PGPObjectFactoryFuzzingTest {
|
||||
|
||||
@FuzzTest
|
||||
@DictionaryFile(resourcePath = "ascii_armor.dict")
|
||||
@DictionaryFile(resourcePath = "openpgp.dict")
|
||||
fun parseFuzzedObjects(provider: FuzzedDataProvider) {
|
||||
val encoding = provider.consumeRemainingAsBytes()
|
||||
|
||||
|
@ -40,13 +43,6 @@ class PGPObjectFactoryFuzzingTest {
|
|||
return
|
||||
} catch (e: UnsupportedPacketVersionException) {
|
||||
return
|
||||
} catch (e: ClassCastException) {
|
||||
if (e.message?.contains("SecretSubkeyPacket") != false) {
|
||||
return
|
||||
}
|
||||
throw e
|
||||
} catch (e: OutOfMemoryError) {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
<EFBFBD>;--
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue