cea-sec/miasm

View on GitHub

Showing 1,373 of 3,020 total issues

Consider simplifying this complex logical expression.
Open

                if 'mod' in dct and dct['mod'] == 0b00 and \
                        'rm' in dct and dct['rm'] == 0b101:
                    nfields[i] = bs(
                        l=32, cls=(x86_32_ne,), fname=self.args['fname'])
                    ndct[self.args['fname']] = True
Severity: Major
Found in miasm/arch/x86/arch.py - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if (
                        # Is stack not empty?
                        dom and
                        # Trivial non-interference if dom.top() and current come
                        # from the same merge set
    Severity: Major
    Found in miasm/analysis/outofssa.py - About 40 mins to fix

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

      def my_FindFirstFile(jitter, pfilepattern, pfindfiledata, get_win_str, encode_str):
      Severity: Minor
      Found in miasm/os_dep/win_api_x86_32.py - About 35 mins to fix

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

        def emul_symb(lifter, ircfg, mdis, states_todo, states_done):
        Severity: Minor
        Found in example/expression/solve_condition_stp.py - About 35 mins to fix

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

              def __init__(self, irdst, loc_db, blocks=None, *args, **kwargs):
          Severity: Minor
          Found in miasm/ir/ir.py - About 35 mins to fix

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

                def add_instr_to_current_state(self, instr, block, assignments, ir_blocks_all, gen_pc_updt):
            Severity: Minor
            Found in miasm/ir/ir.py - About 35 mins to fix

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

                  def Create(self, equations, machine, loc_db, *args, **kwargs):
              Severity: Minor
              Found in example/ida/symbol_exec.py - About 35 mins to fix

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

                    def register(self, name, label, shortcut=None, tooltip=None, icon=-1):
                Severity: Minor
                Found in example/ida/menu.py - About 35 mins to fix

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

                      def __init__(self, lifter,
                  Severity: Minor
                  Found in example/ida/ctype_propagation.py - About 35 mins to fix

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

                        def add_instr_to_current_state(self, instr, block, assignments, ir_blocks_all, gen_pc_updt):
                    Severity: Minor
                    Found in miasm/ir/analysis.py - About 35 mins to fix

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

                      def my_GetEnvironmentVariable(jitter, funcname, get_str, set_str, mylen):
                      Severity: Minor
                      Found in miasm/os_dep/win_api_x86_32.py - About 35 mins to fix

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

                        def ldr_size(ir, instr, arg1, arg2, size):
                        Severity: Minor
                        Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                          def stp(ir, instr, arg1, arg2, arg3):
                          Severity: Minor
                          Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                            def adc(ir, instr, arg1, arg2, arg3):
                            Severity: Minor
                            Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                              def fmul(ir, instr, arg1, arg2, arg3):
                              Severity: Minor
                              Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                                def fadd(ir, instr, arg1, arg2, arg3):
                                Severity: Minor
                                Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                                  def casp(ir, instr, arg1, arg2, arg3):
                                  Severity: Minor
                                  Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                                    def ands(ir, instr, arg1, arg2, arg3):
                                    Severity: Minor
                                    Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                                      def adds(ir, instr, arg1, arg2, arg3):
                                      Severity: Minor
                                      Found in miasm/arch/aarch64/sem.py - About 35 mins to fix

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

                                        def fsub(ir, instr, arg1, arg2, arg3):
                                        Severity: Minor
                                        Found in miasm/arch/aarch64/sem.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language