Skip to content

Conversation

@Cellule
Copy link
Contributor

@Cellule Cellule commented Aug 16, 2016

Fix bug in the Wasm Exception error message memory handling.
The memory for the string was being freed to soon by the destructor of the c++ exception. Which caused the next SysAllocString to allocate a different string at the same pointer of the previous wasm message.
The string's memory needs to be handled manually.


This change is Reviewable

@Cellule
Copy link
Contributor Author

Cellule commented Aug 16, 2016

@MikeHolman @commonlisp Can you please review ?

@MikeHolman
Copy link
Contributor

:shipit:

@Cellule Cellule merged commit d1a94e4 into chakra-core:WebAssembly Aug 16, 2016
Cellule added a commit that referenced this pull request Aug 16, 2016
Merge pull request #1447 from Cellule:wasm/error

Fix bug in the Wasm Exception error message memory handling.
The memory for the string was being freed to soon by the destructor of the c++ exception. Which caused the next SysAllocString to allocate a different string at the same pointer of the previous wasm message.
The string's memory needs to be handled manually.
@Cellule Cellule deleted the wasm/error branch August 16, 2016 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants