Skip to content

Add integer check for alphabet size#2458

Open
heapframe wants to merge 4 commits into
gchq:masterfrom
heapframe:patch-1
Open

Add integer check for alphabet size#2458
heapframe wants to merge 4 commits into
gchq:masterfrom
heapframe:patch-1

Conversation

@heapframe

@heapframe heapframe commented May 27, 2026

Copy link
Copy Markdown

Fixes "Generate De Bruijn Sequence - RangeError in blob:null/6895a5cc-cf19-4023-b300-36e358dad354 on line 2.<br><br>Message: invalid array length"

Description
Adds a check for "Alphabet Size" to make sure its an integer and not a float

Existing Issue
#2450

AI disclosure
I did not use any AI tools.

Test Coverage
Before:
image
After:
image

Fixes "Generate De Bruijn Sequence - RangeError in blob:null/6895a5cc-cf19-4023-b300-36e358dad354 on line 2.<br><br>Message: invalid array length"
@CLAassistant

CLAassistant commented May 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread src/core/operations/GenerateDeBruijnSequence.mjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(Generate De Bruijn Sequence): an alphabet size or key length that is float will cause an unhandled RangeError

3 participants