Skip to content

Fix map handling in .js and .codec.js to match .base.js#1

Closed
roncli wants to merge 1 commit into
msgpack:masterfrom
roncli:master
Closed

Fix map handling in .js and .codec.js to match .base.js#1
roncli wants to merge 1 commit into
msgpack:masterfrom
roncli:master

Conversation

@roncli

@roncli roncli commented Aug 18, 2012

Copy link
Copy Markdown

The map handling in msgpack.js and msgpack.codec.js only handled
element keys which were of type 0xa0. This meant any map elements
whose key was not a string of 31 bytes or less would not be imported
correctly. msgpack.base.js handles element keys correctly, however, so
this commit modifies msgpack.js and msgpack.codec.js to correctly
process map keys.

The map handling in msgpack.js and msgpack.codec.js only handled
element keys which were of type 0xa0.  This meant any map elements
whose key was not a string of 31 bytes or less would not be imported
correctly.  msgpack.base.js handles element keys correctly, however, so
this commit modifies msgpack.js and msgpack.codec.js to correctly
process map keys.
@psq

psq commented May 24, 2013

Copy link
Copy Markdown

this worked for me. Was running into a problem where a property was not decoded with the right name.

@Jimflip

Jimflip commented Aug 12, 2013

Copy link
Copy Markdown

Is this project abandoned?

@allenm

allenm commented Sep 2, 2014

Copy link
Copy Markdown

It worked for me . Thank you!

redboltz added a commit to redboltz/msgpack-javascript that referenced this pull request Feb 15, 2015
Any msgpack object can be map's key now.

This fix is the same as follows:
msgpack#1

The source repository of the pull request seems to be lost, so I created the same fix.
@lhovo

lhovo commented Jan 18, 2016

Copy link
Copy Markdown

Please merge this commit, works well

@gfx gfx closed this May 2, 2019
gfx pushed a commit that referenced this pull request Aug 10, 2021
* Bump actions/setup-node from 1 to 2.4.0

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 2.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v1...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update .github/workflows/ci.yml

* Update .github/workflows/fuzz.yml

* Update .github/workflows/ci.yml

* Update ci.yml

* Update fuzz.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
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.

6 participants