Jagdish Kumar

14 papers Journal 10Unranked 4
YearRankTypeTitle / Venue / Authors
2025 J jnl
IEEE Access
Gopal Lal Jat, Jagdish Kumar, Shiv Narayan
2021 conf
CCECE
Vijay Sirohi, Jagdish Kumar, Tejinder Singh Saggu, Bob Gill
2021 J jnl
Int. J. Biom.
Sandeep Kumar, Sukhwinder Singh, Jagdish Kumar
2020 J jnl
IEEE Access
Prabhu Omer, Jagdish Kumar, Balwinder Singh Surjan
2020 conf
CoMSO
Krishna Kumar Pandey, Mahesh Kumar, Amita Kumari, Jagdish Kumar
2019 J jnl
Comput. Electr. Eng.
Bineet Kaur, Sukhwinder Singh, Jagdish Kumar
2019 conf
CCWC
Sandeep Kumar, Sukhwinder Singh, Jagdish Kumar
2019 J jnl
Int. J. Biom.
Bineet Kaur, Sukhwinder Singh, Jagdish Kumar
2018 J jnl
Wirel. Pers. Commun.
Sandeep Kumar, Sukhwinder Singh, Jagdish Kumar
2018 J jnl
Int. J. Biom.
Bineet Kaur, Sukhwinder Singh, Jagdish Kumar
2018 conf
ISIE
Shimi Sudha Letha, Tilak Thakur, Jagdish Kumar
2018 J jnl
Wirel. Pers. Commun.
Bineet Kaur, Sukhwinder Singh, Jagdish Kumar
2015 J jnl
Int. J. Autom. Control.
Ashu Ahuja, Shiv Narayan, Jagdish Kumar
2015 J jnl
Int. J. Autom. Control.
Bhawna Tandon, Shiv Narayan, Jagdish Kumar
redb/extractors/decompiler/bninja/function_type.py
← Index redb/extractors/decompiler/bninja/function_type.py python
from enum import Enum

import binaryninja


class FunctionType(Enum):
    USER = "USER"
    LIBRARY = "LIBRARY"
    EXTERNAL = "EXTERNAL"
    THUNK = "THUNK"
    UNKNOWN = "UNKNOWN"


class FunctionTypeAnalysis:
    """Get the function kind based on the symbol type associated to this function"""

    def __init__(self, function):
        """Sets the function type dependent on the symbol type associated to this function. If
        any errors occur, then returns UNKNOWN
        """
        self.func_type = FunctionType.USER

        try:
            symbol_type = function.symbol.type
            # Check if it's an external function (there should not be, already skipping these)
            if symbol_type == binaryninja.enums.SymbolType.ImportedFunctionSymbol:
                self.func_type = FunctionType.EXTERNAL

            # Library functions detected by Binary Ninja
            if symbol_type == binaryninja.enums.SymbolType.LibraryFunctionSymbol:
                self.func_type = FunctionType.LIBRARY

            # Check if it's a thunk function
            if function.is_thunk:
                self.func_type = FunctionType.THUNK

        except Exception as _:
            self.func_type = FunctionType.UNKNOWN

    def get_function_type(self):
        return self.func_type