mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +00:00
chore(fuzz): change max message length
This commit is contained in:
parent
4c0a324980
commit
e43f924113
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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));
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user