Skip to content
Snippets Groups Projects
  • Damir Jelić's avatar
    071029c2
    javascript: Switch from deprecated Pointer_stringify() to UTF8toString(). · 071029c2
    Damir Jelić authored
    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.
    071029c2
    History
    javascript: Switch from deprecated Pointer_stringify() to UTF8toString().
    Damir Jelić authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.