Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented the ArrayBufferSerializer #56

Merged
merged 4 commits into from
Nov 14, 2022

Conversation

basmasking
Copy link
Member

Resolves #46

Changes proposed in this pull request:

  • Created the ArrayBufferSerializer
  • Added tests for some of the TypedArray types
  • Updated docs

@MaskingTechnology/jitar

@basmasking basmasking linked an issue Nov 11, 2022 that may be closed by this pull request
const buffer = new ArrayBuffer(bytes.length);
const view = new DataView(buffer);

for (let index = 0; index < bytes.length; index++)

Check failure

Code scanning / CodeQL

Loop bound injection

Iteration over a user-controlled object with a potentially unbounded .length property from [a user-provided value](1).
@basmasking basmasking marked this pull request as ready for review November 11, 2022 22:57
@petermasking petermasking merged commit 0c115e1 into main Nov 14, 2022
@petermasking petermasking deleted the 46-add-support-for-deserializing-binary-data branch November 14, 2022 08:38
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.

Add support for (de)serializing binary data
2 participants