From e43f92411378b7a16ed2a61aae8553003b221d9b Mon Sep 17 00:00:00 2001 From: hulkoba Date: Wed, 13 Dec 2023 14:54:13 +0100 Subject: [PATCH] chore(fuzz): change max message length --- test/fuzz/createCleartextMessage.js | 2 +- test/fuzz/createMessageText.js | 2 +- test/fuzz/readKeyArmored.js | 2 +- test/fuzz/readMessageText.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/fuzz/createCleartextMessage.js b/test/fuzz/createCleartextMessage.js index 356a5e721..34190f3fa 100644 --- a/test/fuzz/createCleartextMessage.js +++ b/test/fuzz/createCleartextMessage.js @@ -2,7 +2,7 @@ import { FuzzedDataProvider } from '@jazzer.js/core'; import openpgp from '../initOpenpgp.js'; -const MAX_MESSAGE_LENGTH = 9000; +const MAX_MESSAGE_LENGTH = 4096; /** * @param { Buffer } inputData diff --git a/test/fuzz/createMessageText.js b/test/fuzz/createMessageText.js index 37c0077e5..d10fce531 100644 --- a/test/fuzz/createMessageText.js +++ b/test/fuzz/createMessageText.js @@ -2,7 +2,7 @@ import { FuzzedDataProvider } from '@jazzer.js/core'; import openpgp from '../initOpenpgp.js'; -const MAX_MESSAGE_LENGTH = 9000; +const MAX_MESSAGE_LENGTH = 4096; /** * @param { Buffer } inputData diff --git a/test/fuzz/readKeyArmored.js b/test/fuzz/readKeyArmored.js index c20746d9a..a432443f8 100644 --- a/test/fuzz/readKeyArmored.js +++ b/test/fuzz/readKeyArmored.js @@ -3,7 +3,7 @@ import { FuzzedDataProvider } from '@jazzer.js/core'; import openpgp from '../initOpenpgp.js'; const ignored = ['Misformed armored text']; -const MAX_MESSAGE_LENGTH = 9000; +const MAX_MESSAGE_LENGTH = 4096; function ignoredError(error) { return ignored.some(message => error.message.includes(message)); diff --git a/test/fuzz/readMessageText.js b/test/fuzz/readMessageText.js index 48a52a1df..61370b1e4 100644 --- a/test/fuzz/readMessageText.js +++ b/test/fuzz/readMessageText.js @@ -3,7 +3,7 @@ import { FuzzedDataProvider } from '@jazzer.js/core'; import openpgp from '../initOpenpgp.js'; const ignored = ['Misformed armored text']; -const MAX_MESSAGE_LENGTH = 9000; +const MAX_MESSAGE_LENGTH = 4096; function ignoredError(error) { return ignored.some(message => error.message.includes(message));