J. David Fuller

13 papers Journal 13
YearRankTypeTitle / Venue / Authors
2017 J jnl
Eur. J. Oper. Res.
J. David Fuller, Emre Çelebi
2013 J jnl
Comput. Oper. Res.
Emre Çelebi, J. David Fuller
2010 J jnl
Oper. Res.
William Chung, J. David Fuller
2008 J jnl
Eur. J. Oper. Res.
J. David Fuller, William Chung
2006 J jnl
Oper. Res.
William Chung, J. David Fuller, Y. June Wu
2002 J jnl
Oper. Res.
Yigal Gerchak, Qi-Ming He, J. David Fuller, Ekachidd Chungcharoen
2001 J jnl
Oper. Res. Lett.
Alfred Sham, Y. June Wu, J. David Fuller
1998 J jnl
Oper. Res. Lett.
J. David Fuller, Frederic H. Murphy
1996 J jnl
Oper. Res.
Y. June Wu, J. David Fuller
1994 J jnl
Networks
J. David Fuller, B. Lan
1991 J jnl
Oper. Res. Lett.
Y. June Wu, J. David Fuller
1987 J jnl
Oper. Res.
J. David Fuller, R. G. Vickson
1981 J jnl
Oper. Res. Lett.
J. David Fuller, Sandra L. Schwartz, William T. Ziemba
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