Opened on 09/23/2016 at 10:08:19 AM
Closed on 09/23/2016 at 11:25:08 AM
Last modified on 09/23/2016 at 11:31:17 AM
#4467 closed defect (fixed)
Js Hydra converting some hex strings incorrectly
Reported by: | kzar | Assignee: | trev |
---|---|---|---|
Priority: | P3 | Milestone: | |
Module: | Automation | Keywords: | jshydra |
Cc: | trev, sebastian | Blocked By: | |
Blocking: | #4465, #4468 | Platform: | Unknown / Cross platform |
Ready: | yes | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description (last modified by trev)
Environment
64 bit Linux, JS Shell 45
How to reproduce
- Create a file called jsshell/test.js with the following contents:
"\x2B\x0E\x03\x02\x1A";
- Run this command: mozilla-esr45-linux-x86_64/js jshydra.js scripts/abprewrite.js test.js | grep '"' (ensuring the js shell path is correct).
Observed behaviour
Output is: "+\x014\x03\x02\x110";
Expected behaviour
Output should be "+\x0E\x03\x02\x1A";.
Background
Function sanitize() in scripts/astDecompile.js forgets to hex-encode numbers - so instead of A you get 10 in the string literal.
Attachments (0)
Change History (6)
comment:1 Changed on 09/23/2016 at 10:28:42 AM by trev
- Description modified (diff)
- Owner changed from kzar to trev
comment:2 Changed on 09/23/2016 at 10:30:44 AM by sebastian
- Priority changed from Unknown to P3
- Ready set
comment:3 Changed on 09/23/2016 at 10:52:33 AM by trev
- Review URL(s) modified (diff)
- Status changed from new to reviewing
comment:4 Changed on 09/23/2016 at 11:23:57 AM by abpbot
comment:5 Changed on 09/23/2016 at 11:25:08 AM by trev
- Resolution set to fixed
- Status changed from reviewing to closed
comment:6 Changed on 09/23/2016 at 11:31:17 AM by kzar
- Blocking 4468 added
Note: See
TracTickets for help on using
tickets.
A commit referencing this issue has landed:
Issue 4467 - Fixed hex encoding of characters in string literal and adjusted tests for newer SpiderMonkey versions