Skip to content

Fix large byte array conversion to hex string#241

Merged
MarkPflug merged 1 commit into
MarkPflug:mainfrom
0xced:fix-large-byte-arrays
May 11, 2026
Merged

Fix large byte array conversion to hex string#241
MarkPflug merged 1 commit into
MarkPflug:mainfrom
0xced:fix-large-byte-arrays

Conversation

@0xced

@0xced 0xced commented May 9, 2026

Copy link
Copy Markdown
Contributor

Add a new byte[200] data (greater than 32) in the ExcelDataWriterTests.Binary test to demonstrate that ArgumentException is thrown in HexCodec.ToHexCharArray.

Making the charBuffer exactly twice as big as the byteBuffer fixes the issue.

Add a new byte[200] data (greater than 32) in the ExcelDataWriterTests.Binary test to demonstrate that ArgumentException is thrown in HexCodec.ToHexCharArray.

Making the charBuffer exactly twice as big as the byteBuffer fixes the issue.
@MarkPflug MarkPflug merged commit 7ff8049 into MarkPflug:main May 11, 2026
1 check passed
@0xced 0xced deleted the fix-large-byte-arrays branch May 11, 2026 17:56
@MarkPflug

Copy link
Copy Markdown
Owner

I just published 0.5.7 with this fix. Thanks again.

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.

2 participants