Skip to content

Commit

Permalink
chore(fuzz): change max message length
Browse files Browse the repository at this point in the history
  • Loading branch information
hulkoba committed Dec 14, 2023
1 parent 4c0a324 commit e43f924
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/fuzz/createCleartextMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/createMessageText.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/readKeyArmored.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/readMessageText.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e43f924

Please sign in to comment.