Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.3.0 Beta1
-
None
Description
Calling Qt.btoa or Qt.md5 with binary data yields unexpected output due to QV4 converting the input contents to QString before hashing.
Calling these methods on binary data will fail to operate correctly on the data.
Example attached.
Patch attached, which converts using toVariant instead. Generated against git master, but it applies cleanly on 5.3.0Beta1 also.
This patch does not address conversion of binary ArrayBuffer contents (or Uint8Array) as they appear to be universally unimplemented in V4 at this point.