hackedteam/vector-exploit

View on GitHub
src/ht-webkit-Android4-src/precompiled/debug/script.js

Summary

Maintainability
F
1 mo
Test Coverage

File script.js has 1934 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/** @define {boolean} */
var ENABLE_DEBUG = true;

var INVISIBLE = true;

Severity: Major
Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 5 days to fix

    Function stage2_overwrite has a Cognitive Complexity of 74 (exceeds 5 allowed). Consider refactoring.
    Open

    function stage2_overwrite(xsltobj, page, webcoretext) {
        
        var addr = page.base + 0x3000;
        var nobj = 0;
        var i;
    Severity: Minor
    Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function stage2 has 196 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function stage2(page, base, iframe, xml, documentarea) {
        // Area available:
        // 0x3fff00 bytes starting at page.base (~4MB). Can't overwrite from pagebase+0x0 to pagebase+0x7.
        // page is aligned to 0x1000
    
    
    Severity: Major
    Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 7 hrs to fix

      Function stage2 has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
      Open

      function stage2(page, base, iframe, xml, documentarea) {
          // Area available:
          // 0x3fff00 bytes starting at page.base (~4MB). Can't overwrite from pagebase+0x0 to pagebase+0x7.
          // page is aligned to 0x1000
      
      
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 7 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function stage2_overwrite has 173 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function stage2_overwrite(xsltobj, page, webcoretext) {
          
          var addr = page.base + 0x3000;
          var nobj = 0;
          var i;
      Severity: Major
      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 6 hrs to fix

        Function stage3 has 165 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function stage3 (memobj, webcoretext, node, addr, page) {
            INFO("> [ Stage 3 ]");
        
            // Find libwebcore.so ELF header
            var webcore_base = memobj.findimagebase(webcoretext);
        Severity: Major
        Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 6 hrs to fix

          Function onload has 142 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              iframe2.onload = function () {
              // Execute the rest of stage2()
              INFO("Document loaded.");
              var xml2 = iframe2.contentWindow.document;
              if (xml2 === undefined) {
          Severity: Major
          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 5 hrs to fix

            Function stage3_alternate has 134 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function stage3_alternate(memobj, node, addr, page, libwebcore, libc) {
                var gadgets = {};
            
                // Gadget 2 in libc
            
            
            Severity: Major
            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 5 hrs to fix

              Function initsymtab has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
              Open

              ELFObject.prototype.initsymtab = function () {
                  
                  var phdr = this.addr + this.memobj.read32(this.addr + 28);
                  
                  var phnum = this.memobj.read16(this.addr + 44);
              Severity: Minor
              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 4 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function find_spray_addr has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
              Open

              function find_spray_addr(addr, stop, increment) {
                  if ((increment >= 0) && (addr > stop)) {
                  stage0_fail(addr);
                  return;
                  }
              Severity: Minor
              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 4 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function stage3 has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
              Open

              function stage3 (memobj, webcoretext, node, addr, page) {
                  INFO("> [ Stage 3 ]");
              
                  // Find libwebcore.so ELF header
                  var webcore_base = memobj.findimagebase(webcoretext);
              Severity: Minor
              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 3 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function initsymtab has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              ELFObject.prototype.initsymtab = function () {
                  
                  var phdr = this.addr + this.memobj.read32(this.addr + 28);
                  
                  var phnum = this.memobj.read16(this.addr + 44);
              Severity: Major
              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 3 hrs to fix

                Function createstage1layout has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function createstage1layout(base, documentarea) {
                    // Note that the NULLs can actually be removed, they are in place
                    // just as a reminder NOT to change them and to make layout_check
                    // complain if they are redefined
                
                
                Severity: Major
                Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 2 hrs to fix

                  Function gadget1_slowsearch has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function gadget1_slowsearch(libwebcore, memobj, node) {
                      node.obj.nodeValue = "gadget1_slowsearch";
                      var m_data = memobj.read32(node.addr + node.dataoffset);
                      var oldaddr = memobj.read32(m_data + 8);
                      var oldlen = memobj.read32(m_data + 4);
                  Severity: Minor
                  Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 2 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function stage3_alternate has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function stage3_alternate(memobj, node, addr, page, libwebcore, libc) {
                      var gadgets = {};
                  
                      // Gadget 2 in libc
                  
                  
                  Severity: Minor
                  Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 2 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function find_spray_addr has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function find_spray_addr(addr, stop, increment) {
                      if ((increment >= 0) && (addr > stop)) {
                      stage0_fail(addr);
                      return;
                      }
                  Severity: Major
                  Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 2 hrs to fix

                    Function stage1 has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function stage1(base, pagenum) {
                        INFO("> [ Stage 1 ]");
                        
                        var iframe = document.createElement("iframe");
                        
                    Severity: Major
                    Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 2 hrs to fix

                      Function xslt_exploit has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function xslt_exploit(iframe, xml, base, documentarea, pagenum) {
                      
                          documentarea += 56;
                          documentarea += 4;
                      
                      
                      Severity: Major
                      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 2 hrs to fix

                        Function gadget1_slowsearch has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function gadget1_slowsearch(libwebcore, memobj, node) {
                            node.obj.nodeValue = "gadget1_slowsearch";
                            var m_data = memobj.read32(node.addr + node.dataoffset);
                            var oldaddr = memobj.read32(m_data + 8);
                            var oldlen = memobj.read32(m_data + 4);
                        Severity: Minor
                        Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                          Function onload has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              iframe.onload = function (e) {
                              var url = e.currentTarget.contentWindow.location.href;
                              if (e.currentTarget.contentWindow.location.href.indexOf("data.xml?id=") == -1) {
                                  ERR("PHANTOM BUG: iframe src and event target don't match! " + url + " expecting " + src);
                              }
                          Severity: Minor
                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                            Function call has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                            Open

                            RCE.prototype.call = function(fn, r0, r1, r2, r3, r4, forking) {
                                if (fn === undefined || fn === null) {
                                ERR("RCE: function address cannot be " + fn);
                                }
                                if (r0 === undefined) r0 = 0;
                            Severity: Minor
                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function stage1 has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function stage1(base, pagenum) {
                                INFO("> [ Stage 1 ]");
                                
                                var iframe = document.createElement("iframe");
                                
                            Severity: Minor
                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function find16 has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                            Open

                            BufferMemoryObject.prototype.find16 = function(startaddr, endaddr, arr) {
                                if (startaddr === undefined) {
                                ERR("find16: a start address is required");
                                }
                            
                            
                            Severity: Minor
                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function find32 has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                            Open

                            BufferMemoryObject.prototype.find32 = function(startaddr, endaddr, arr) {
                                if (startaddr === undefined) {
                                ERR("find32: a start address is required");
                                }
                            
                            
                            Severity: Minor
                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function find_node_40 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function find_node_40(start, end, increment) {
                                var nodeaddr = null;
                                var node = null;
                            
                                var dataoffset = null;
                            Severity: Minor
                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                              Function readbytes has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                              Open

                              XSLTObject.prototype.readbytes = function (addr, nbytes) {
                                  if (addr === undefined) {
                                  ERR("XSLTObject.readbytes: an address is required");
                                  }
                              
                              
                              Severity: Minor
                              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function call has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              RCE.prototype.call = function(fn, r0, r1, r2, r3, r4, forking) {
                                  if (fn === undefined || fn === null) {
                                  ERR("RCE: function address cannot be " + fn);
                                  }
                                  if (r0 === undefined) r0 = 0;
                              Severity: Minor
                              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                                Function readbytes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                XSLTObject.prototype.readbytes = function (addr, nbytes) {
                                    if (addr === undefined) {
                                    ERR("XSLTObject.readbytes: an address is required");
                                    }
                                
                                
                                Severity: Minor
                                Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                                  Function XSLTObject has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function XSLTObject(page, childrenaddr, nameaddr, elementaddr, xml) {
                                      if (page === undefined) {
                                      ERR("XSLTObject: A page object is required.");
                                      }
                                  
                                  
                                  Severity: Minor
                                  Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                                    Function bisect_check has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function bisect_check(bisect_firsthalf, bisect_secondhalf, addr) {
                                        // INFO("bisect_check " + addr);
                                    
                                        var iframe = document.createElement("iframe");
                                    
                                    
                                    Severity: Minor
                                    Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

                                      Function call has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      RCE.prototype.call = function(fn, r0, r1, r2, r3, r4, forking) {
                                      Severity: Major
                                      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 50 mins to fix

                                        Function stage3_alternate has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        function stage3_alternate(memobj, node, addr, page, libwebcore, libc) {
                                        Severity: Minor
                                        Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 45 mins to fix

                                          Function download_stage4 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                          function download_stage4(memobj, rce, libc, libwebcore, addr, trk) {
                                          Severity: Minor
                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 45 mins to fix

                                            Function xslt_exploit has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                            Open

                                            function xslt_exploit(iframe, xml, base, documentarea, pagenum) {
                                            
                                                documentarea += 56;
                                                documentarea += 4;
                                            
                                            
                                            Severity: Minor
                                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 45 mins to fix

                                            Cognitive Complexity

                                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                            A method's cognitive complexity is based on a few simple rules:

                                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                            • Code is considered more complex for each "break in the linear flow of the code"
                                            • Code is considered more complex when "flow breaking structures are nested"

                                            Further reading

                                            Avoid deeply nested control flow statements.
                                            Open

                                                        if (m_data < 0x10000) {
                                                            INFO("find_node_40: Invalid data value for text node: " + hex(m_data, 8) +
                                                             " (type offset: " + i*4 + ", dataoffset: " + dataoffset);
                                                            return null;
                                                        }
                                            Severity: Major
                                            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 45 mins to fix

                                              Function findindex has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                              Open

                                              ELFObject.prototype.findindex = function(name) {
                                                  if (this.hashtab === undefined) {
                                                  this.hashtab = {};
                                                  this.hashtab.addr = this.dyntable['hashtab'];
                                                  this.hashtab.nbucket = this.memobj.read32(this.hashtab.addr);
                                              Severity: Minor
                                              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 45 mins to fix

                                              Cognitive Complexity

                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                              A method's cognitive complexity is based on a few simple rules:

                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                              • Code is considered more complex for each "break in the linear flow of the code"
                                              • Code is considered more complex when "flow breaking structures are nested"

                                              Further reading

                                              Function forkingcall has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                              RCE.prototype.forkingcall = function(fn, r0, r1, r2, r3, r4) {
                                              Severity: Minor
                                              Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 45 mins to fix

                                                Function stage2 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                function stage2(page, base, iframe, xml, documentarea) {
                                                Severity: Minor
                                                Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                  Function stage3 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                  function stage3 (memobj, webcoretext, node, addr, page) {
                                                  Severity: Minor
                                                  Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                    Function XSLTObject has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                    function XSLTObject(page, childrenaddr, nameaddr, elementaddr, xml) {
                                                    Severity: Minor
                                                    Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                      Function xslt_exploit has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                      function xslt_exploit(iframe, xml, base, documentarea, pagenum) {
                                                      Severity: Minor
                                                      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                        Function RCE has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                        function RCE(memobj, node, structfn, callstub, fakevtable) {
                                                        Severity: Minor
                                                        Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                          Function apply_layout has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                          Open

                                                          function apply_layout(base, page, index, layout) {
                                                              for (var k = 0; k < layout.length; k++) {
                                                              var el = layout[k];
                                                              var where = el[0] - (base + 0x8);
                                                              var what = el[1];
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                          Cognitive Complexity

                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                          A method's cognitive complexity is based on a few simple rules:

                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                          Further reading

                                                          Function forkingcall has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                          Open

                                                          RCE.prototype.forkingcall = function(fn, r0, r1, r2, r3, r4) {
                                                              if (fn === undefined || fn === null) {
                                                              ERR("RCE: function address cannot be " + fn);
                                                              }
                                                              if (r0 === undefined) r0 = 0;
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

                                                          Cognitive Complexity

                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                          A method's cognitive complexity is based on a few simple rules:

                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                          Further reading

                                                          Function bisect_check has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                          Open

                                                          function bisect_check(bisect_firsthalf, bisect_secondhalf, addr) {
                                                              // INFO("bisect_check " + addr);
                                                          
                                                              var iframe = document.createElement("iframe");
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 25 mins to fix

                                                          Cognitive Complexity

                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                          A method's cognitive complexity is based on a few simple rules:

                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                          Further reading

                                                          Function search_pages has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                          Open

                                                          function search_pages(offset, comparevalue) {
                                                              for (var i = 0; i < bigmem.length; i++) {
                                                              var page = bigmem[i];
                                                              for (var j = 0; j < 1024; j++) {
                                                                  var data = page[j*1024 + (offset - 0x8)/4];
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 25 mins to fix

                                                          Cognitive Complexity

                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                          A method's cognitive complexity is based on a few simple rules:

                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                          Further reading

                                                          Function map_pages has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                          Open

                                                          function map_pages(layout, num) {
                                                              var M1024 = 0xffff4;
                                                              var SIZE = M1024;
                                                          
                                                              for (var i = 0; i < num; i++) {
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 25 mins to fix

                                                          Cognitive Complexity

                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                          A method's cognitive complexity is based on a few simple rules:

                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                          Further reading

                                                          Function XSLTObject has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                          Open

                                                          function XSLTObject(page, childrenaddr, nameaddr, elementaddr, xml) {
                                                              if (page === undefined) {
                                                              ERR("XSLTObject: A page object is required.");
                                                              }
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 25 mins to fix

                                                          Cognitive Complexity

                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                          A method's cognitive complexity is based on a few simple rules:

                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                          Further reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i = 0; i < CALLSTUB.length/4; i++) {
                                                              switch (memobj.read32(shellcode_addr + i*4)) {
                                                              case 0xbadadd00:
                                                                  memobj.write32(shellcode_addr + i*4, addr + 0x8300 + gadgets.str_r1_r4.disp);
                                                                  break;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 day to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1674..1698

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 260.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i = 0; i < CALLSTUB.length/4; i++) {
                                                              switch (memobj.read32(shellcode_addr + i*4)) {
                                                              case 0xbadadd00:
                                                                  memobj.write32(shellcode_addr + i*4, addr + 0x8300 + gadgets.str_r1_r4.disp);
                                                                  break;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 day to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2000..2024

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 260.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                          BufferMemoryObject.prototype.find16 = function(startaddr, endaddr, arr) {
                                                              if (startaddr === undefined) {
                                                              ERR("find16: a start address is required");
                                                              }
                                                          
                                                          
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 day to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2459..2492

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 214.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                          BufferMemoryObject.prototype.find32 = function(startaddr, endaddr, arr) {
                                                              if (startaddr === undefined) {
                                                              ERR("find32: a start address is required");
                                                              }
                                                          
                                                          
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 day to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2498..2531

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 214.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                                  for (var cur = addr + 0x2100; cur < addr + 0x3000; cur += 0x50) {
                                                                  for (var ca = cur - 4; ca < cur + 0x50; ca +=16) {
                                                                      INFO(hex(ca, 8) + ": " + hex(memobj.read32(ca), 8) + " " +
                                                                       hex(memobj.read32(ca+4), 8) + " " +
                                                                       hex(memobj.read32(ca+8), 8) + " " +
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 7 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1420..1429

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 181.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                                  for (var cur = addr + 0x1000; cur < addr + 0x2000; cur += 0x40) {
                                                                  for (var ca = cur - 4; ca < cur + 0x40; ca +=16) {
                                                                      INFO(hex(ca, 8) + ": " + hex(memobj.read32(ca), 8) + " " +
                                                                       hex(memobj.read32(ca+4), 8) + " " +
                                                                       hex(memobj.read32(ca+8), 8) + " " +
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 7 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1432..1441

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 181.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if (ENABLE_DEBUG) {
                                                              for (var name in gadgets) {
                                                                  var extra = "";
                                                                  for (var attr in gadgets[name]) {
                                                                  if (attr != "addr") {
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 5 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1890..1903

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 145.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if (ENABLE_DEBUG) {
                                                              for (var name in gadgets) {
                                                                  var extra = "";
                                                                  for (var attr in gadgets[name]) {
                                                                  if (attr != "addr") {
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 5 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1568..1581

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 145.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                          function bisect_clear(a, b) {
                                                              for (var j = a; j <= b; j++) {
                                                              for (var i = 0; i < 16 * 4; i++) {
                                                                  var index = (i * 0x10000 + (i%16) * 0x1000 + 0x30 - 0x8) / 4;
                                                                  bigmem[j][index] = 0;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 3 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 479..486

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 110.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                          function bisect_putback(a, b) {
                                                              for (var j = a; j <= b; j++) {
                                                              for (var i = 0; i < 16 * 4; i++) {
                                                                  var index = (i * 0x10000 + (i%16) * 0x1000 + 0x30 - 0x8) / 4;
                                                                  bigmem[j][index] = 0x70747468;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 3 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 470..477

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 110.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if (v8enter !== null) {
                                                              INFO("v8 is separate from libwebcore. Adjusting checks...");
                                                              var v8 = memobj.findimagebase(v8enter);
                                                              v8 = new ELFObject(v8, memobj);
                                                              v8start = v8.addr;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 2 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1991..1997

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 77.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if (v8enter !== null) {
                                                              INFO("v8 is separate from libwebcore. Adjusting checks...");
                                                              var v8 = memobj.findimagebase(v8enter);
                                                              v8 = new ELFObject(v8, memobj);
                                                              v8start = v8.addr;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 2 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1665..1671

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 77.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if ((addr & 0x00ff0000)>>>0 < 0x00200000) {
                                                              if (increment > 0) {
                                                                  addr = (addr & 0xff00ffff)>>>0 ^ 0x00200000;
                                                              } else {
                                                                  addr = ((addr - 0x01000000) & 0xff00ffff)>>>0 ^ 0x007a0000;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 2 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 399..405

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 76.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if ((addr & 0x00ff00)>>>0 < 0x002000) {
                                                              if (increment > 0) {
                                                                  addr = ((addr & 0xffff00ff)>>>0) ^ 0x002000;
                                                              } else {
                                                                  addr = ((addr - 0x010000) & 0xffff00ff)>>>0 ^ 0x00007000;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 2 hrs to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 415..421

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 76.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if ((addr & 0x00ff00) > 0x007a00) {
                                                              if (increment > 0) {
                                                                  addr = ((addr & 0xffff00ff)>>>0 + 0x10000) ^ 0x002000;
                                                              } else {
                                                                  addr = (addr & 0xffff00ff)>>>0 ^ 0x007000;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 423..429

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 72.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if ((addr & 0x00ff0000) > 0x007a0000) {
                                                              if (increment > 0) {
                                                                  addr = ((addr & 0xff00ffff)>>>0 + 0x1000000) ^ 0x00200000;
                                                              } else {
                                                                  addr = (addr & 0xff00ffff)>>>0 ^ 0x007a0000;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 407..413

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 72.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              var send_error = function(string) {
                                                              var req = new XMLHttpRequest();
                                                              var formdata = new FormData();
                                                              formdata.append("logdata", string);
                                                              req.open("POST", "log/error", true);
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 16..22

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 69.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              var send_info = function(string) {
                                                              var req = new XMLHttpRequest();
                                                              var formdata = new FormData();
                                                              formdata.append("logdata", string);
                                                              req.open("POST", "log/info", true);
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 24..30

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 69.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i in nodes) {
                                                                  if (nodes[i].nodeValue.slice(0, 1) == "W") {
                                                                  INFO("Found node (position: " + i + ")");
                                                                  node = nodes[i];
                                                                  break;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1297..1303

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 68.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i in nodes) {
                                                                  if (nodes[i].nodeValue.slice(0, 1) == "W") {
                                                                  INFO("Found node (position: " + i + ")");
                                                                  node = nodes[i];
                                                                  break;
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1364..1370

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 68.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              var XSL = '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >' +
                                                              '<xsl:template match="ztX">' +
                                                              '  <xsl:if test="text()=ELZ">' +
                                                              '    <xsl:apply-templates/>' +
                                                              '    <xsl:message terminate="yes"/>' +
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1095..1109

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 57.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              XSL = '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >' +
                                                                  '<xsl:template match="run">' +
                                                                  '  <xsl:apply-templates/>' +
                                                                  '</xsl:template>' +
                                                                  '<xsl:template match="ztX">' +
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 713..727

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 57.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                          Open

                                                              if (INVISIBLE === true) {
                                                              iframe.style.height = 0;
                                                              iframe.style.width = 0;
                                                              iframe.style.border = "none";
                                                              }
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 3 other locations - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 436..440
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 626..630
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 957..961

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 56.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                          Open

                                                              if (INVISIBLE === true) {
                                                              iframe.style.height = 0;
                                                              iframe.style.width = 0;
                                                              iframe.style.border = "none";
                                                              }
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 3 other locations - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 436..440
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 523..527
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 957..961

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 56.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                          Open

                                                              if (INVISIBLE === true) {
                                                              iframe.style.height = 0;
                                                              iframe.style.width = 0;
                                                              iframe.style.border = "none";
                                                              }
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 3 other locations - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 523..527
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 626..630
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 957..961

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 56.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                          Open

                                                              if (INVISIBLE === true) {
                                                              iframe2.style.height = 0;
                                                              iframe2.style.width = 0;
                                                              iframe2.style.border = "none";
                                                              }
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 3 other locations - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 436..440
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 523..527
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 626..630

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 56.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              var rel = this.memobj.read32(this.addr + this.memobj.read32(this.dyntable['jmprel'] + (8 * i)));
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2771..2771

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 55.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              var rel = this.memobj.read32(this.addr + this.memobj.read32(this.dyntable['jmprel'] + (8 * i)));
                                                          Severity: Major
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 1 hr to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2758..2758

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 55.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i = 0; i < CALLSTUB.length; i++) {
                                                              memobj.write8(shellcode_addr + i, CALLSTUB[i]);
                                                              }
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 45 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1981..1983

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 50.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i = 0; i < CALLSTUB.length; i++) {
                                                              memobj.write8(shellcode_addr + i, CALLSTUB[i]);
                                                              }
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 45 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 1655..1657

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 50.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                          function loadtext(filename) {
                                                              var req = new XMLHttpRequest();
                                                              req.open("GET", filename, false);
                                                              req.send();
                                                              // TODO error checking
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 40 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 282..288

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 48.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                          function loadXML(filename) {
                                                              var req = new XMLHttpRequest();
                                                              req.open("GET", filename, false);
                                                              req.send();
                                                              // TODO error checking
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 40 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 290..296

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 48.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i = 0; i < arr.length; i++) {
                                                              this.write8(addr + i, arr[i]);
                                                              }
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 35 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2441..2443

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 47.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              for (var i = 0; i < arr.length; i++) {
                                                              this.write8(addr + i, arr[i]);
                                                              }
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 35 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 2450..2452

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 47.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if ((where - this.base)/4  + this.index > this.array.length) {
                                                              throw new Error("Attempt to write beyond array boundaries");
                                                              }
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 35 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 106..108

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 46.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                          Open

                                                              if ((where - this.base)/4  + this.index > this.array.length) {
                                                              throw new Error("Attempt to write beyond array boundaries");
                                                              }
                                                          Severity: Minor
                                                          Found in src/ht-webkit-Android4-src/precompiled/debug/script.js and 1 other location - About 35 mins to fix
                                                          src/ht-webkit-Android4-src/precompiled/debug/script.js on lines 132..134

                                                          Duplicated Code

                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                          Tuning

                                                          This issue has a mass of 46.

                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                          Refactorings

                                                          Further Reading

                                                          There are no issues that match your filters.

                                                          Category
                                                          Status