chore(fuzz): change max message length

This commit is contained in:
hulkoba 2023-12-13 14:54:13 +01:00
parent 4c0a324980
commit e43f924113
No known key found for this signature in database
GPG Key ID: ACB6C4A3A4F2BE2F
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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));

View File

@ -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));