javascript: Switch from deprecated Pointer_stringify() to UTF8toString().
The Pointer_stringify() function is deprecated and has a couple of issues because it tries to guess the encoding of the buffer. In some cases it can ignore the length parameter which could end up in inconsistencies. Switch to UTF8toString() that takes a length parameter and respects, that way we don't need to allocate an additional byte for a NULL byte.
Showing
- javascript/olm_inbound_group_session.js 10 additions, 17 deletionsjavascript/olm_inbound_group_session.js
- javascript/olm_outbound_group_session.js 9 additions, 16 deletionsjavascript/olm_outbound_group_session.js
- javascript/olm_pk.js 23 additions, 35 deletionsjavascript/olm_pk.js
- javascript/olm_post.js 22 additions, 36 deletionsjavascript/olm_post.js
- javascript/olm_pre.js 0 additions, 8 deletionsjavascript/olm_pre.js
- javascript/olm_sas.js 5 additions, 5 deletionsjavascript/olm_sas.js
Loading
Please register or sign in to comment