diff options
author | Yury Delendik <ydelendik@mozilla.com> | 2018-09-05 17:35:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 17:35:46 -0500 |
commit | f831369f8586f86cafe10ee4f34c9b1f239abbfc (patch) | |
tree | 46e2ff1189c3d64e21efdf684e6a2b32557abb6f /test/spec/of_string-overflow-s64.fail.wast | |
parent | a0cbc9dbbfcfd5bb254da904c19e3f6b0a1716c1 (diff) | |
download | binaryen-f831369f8586f86cafe10ee4f34c9b1f239abbfc.tar.gz binaryen-f831369f8586f86cafe10ee4f34c9b1f239abbfc.tar.bz2 binaryen-f831369f8586f86cafe10ee4f34c9b1f239abbfc.zip |
[wasm2js] Fix base64 encoding (#1670)
The static std::string base64Encode(std::vector<char> &data) { uses signed char in input data. The ((int)data[0]) converts it the signed int, making '\xFF' char into -1. The patch fixes casting.
Diffstat (limited to 'test/spec/of_string-overflow-s64.fail.wast')
0 files changed, 0 insertions, 0 deletions