Wei Lv

81 papers A* 3B 2C 1Misc 2Journal 50Unranked 23
YearRankTypeTitle / Venue / Authors
2026 J jnl
IEEE Access
Chunhao Tang, Yueshun He, Linlin He, Jie Chen, Yuankun Yang, Wei Lv
2026 J jnl
Reliab. Eng. Syst. Saf.
Jiamei Zhou, Wei Lv, Jinghui Wang, Rui Zheng, Xiaoting Yang
2025 J jnl
Comput. Oper. Res.
Jie Liang, Cheng-Yang Yu, Wei Lv, Wei-Kun Chen, Yu-Hong Dai
2025 J jnl
Inf. Process. Manag.
Xiaoting Yang, Wei Lv, Ting Yang, Bart Baesens
2025 J jnl
CoRR
Xiaoting Yang, Wei Lv, Ting Yang, Bart Baesens
2025 J jnl
Frontiers Comput. Neurosci.
Fufeng Wang, Zihe Luo, Wei Lv, Xiaolin Zhu
2025 J jnl
Signal Image Video Process.
Zihe Luo, Fufeng Wang, Xinkui Liao, Yuheng Liang, Kaihua Che, Wei Lv, Xiaolin Zhu
2025 B conf
ICPADS
Weibin Kong, Jinwei Ye, Chonglin Zhao, Yunqing Ma, Yanrong Chen, Wei Lv
2025 J jnl
Simul. Model. Pract. Theory
Wei Lv, Fangwei Deng, Jinghui Wang, Yefan Han, Shuai Yang
2025 J jnl
Eur. J. Oper. Res.
Wei Lv, Cheng-Yang Yu, Jie Liang, Wei-Kun Chen, Yu-Hong Dai
2024 J jnl
IEEE Trans. Neural Networks Learn. Syst.
Wei Lv, Chao Zhang, Huaxiong Li, Xiuyi Jia, Chunlin Chen
2024 J jnl
IEEE Trans. Control. Syst. Technol.
Zhijia Huang, Luis D. Couto, Chitra Dangwal, Shujie Xiao, Wei Lv, Dong Zhang, Scott J. Moura
2024 J jnl
Inf. Fusion
Xiaoping Cen, Wei Dong, Wei Lv, Yi Zhao, Fred Dubee, Alexios-Fotios A. Mentis, Dragomirka Jovic, Huanming Yang, Yixue Li
2024 J jnl
Earth Sci. Informatics
Tongfei Li, Kaihua Che, Jiadong Lu, Yifan Zeng, Wei Lv, Zhiyao Liang
2024 J jnl
Big Data Res.
Tongfei Li, Mingzheng Lai, Shixian Nie, Haifeng Liu, Zhiyao Liang, Wei Lv
2023 C conf
iSPEC
Wei Lv, Xiangyu Hu, Yang Zhou, Sijin Gong, Liguang Lin, Xiaoning Mou
2023 J jnl
Inf. Sci.
Wei Lv, Chao Zhang, Huaxiong Li, Bo Wang, Chunlin Chen
2023 conf
SSPS
Qiqing Li, Ru Li, Xin Shen, Wei Lv
2023 A* conf
ASE
Jianzhong Su, Xingwei Lin, Zhiyuan Fang, Zhirong Zhu, Jiachi Chen, Zibin Zheng, Wei Lv, Jiashui Wang
2023 A* conf
AAAI
Chao Zhang, Huaxiong Li, Wei Lv, Zizheng Huang, Yang Gao, Chunlin Chen
2023 J jnl
IEEE Access
Yuchao Jiang, Jiadong Lu, Tongfei Li, Wei Lv
2023 J jnl
Internet Technol. Lett.
Wei Lv
2023 A* conf
CCS
Wenya Wang, Xingwei Lin, Jingyi Wang, Wang Gao, Dawu Gu, Wei Lv, Jiashui Wang
2023 J jnl
CoRR
Wenya Wang, Xingwei Lin, Jingyi Wang, Wang Gao, Dawu Gu, Wei Lv, Jiashui Wang
2023 J jnl
CoRR
Wei Lv, Chao Zhang, Huaxiong Li, Xiuyi Jia, Chunlin Chen
2022 J jnl
J. Frankl. Inst.
Wei Lv, Hanfei He, Kezan Li, Nan Jiang
2022 J jnl
CoRR
Yan Yan, Tianzheng Liao, Jinjin Zhao, Jiahong Wang, Liang Ma, Wei Lv, Jing Xiong, Lei Wang
2022 conf
ICDTE
Jing Tao, Hongwei Li, Wei Lv, Xiaoyan Wu
2022 J jnl
Frontiers Neurorobotics
Junxian Wang, Wei Lv, Zhouya Wang, Xiaolong Zhang, Meixuan Jiang, Junhan Gao, Shangwen Chen
2022 J jnl
Int. J. Wirel. Mob. Comput.
Guangshun Chen, Wei Lv, Junwei Ma, Yanchun Liang
2021 conf
ISSCC
Zongming Duan, Bowen Wu, ChuanMing Zhu, Yan Wang, Weiwei Jin, Ying Liu, Yanhui Wu, Tao Zhang, Ming Liu, Bingfei Dou, Bingbing Liao, Wei Lv, Dongfang Pan, Yongjie Li, Changwei Wang, Yuefei Dai, Pei Li, Hao Gao
2021 J jnl
IEICE Electron. Express
Yongjie Li, Zongming Duan, Wei Lv, Xiao Li, Yuefei Dai, Liguo Sun
2021 J jnl
Complex.
Xiaoyan Xu, Wei Lv, Beibei Zhang, Shuaipeng Zhou, Wei Wei, Yusen Li
2021 conf
ICSI (1)
Ziheng Rong, Xiaoling Gong, Xiangyu Wang, Wei Lv, Jian Wang
2021 J jnl
ISPRS Int. J. Geo Inf.
Dan Yang, Kai Mu, Hui Yang, Mingliang Luo, Wei Lv, Bin Zhang, Hui Liu, Zhicheng Wang
2021 J jnl
IEEE Trans. Cloud Comput.
Zhuo Tang, Wei Lv, Kenli Li, Keqin Li
2021 J jnl
J. Comb. Optim.
Wei Lv, Chenchen Wu
2021 conf
AIAM (ACM)
Youchun Cen, Wei Lv
2021 conf
ISCID
Congsheng Zhang, Heng Zhang, Kun Zhang, Wei Lv, Zunli Yang, Yichi Zhang
2021 conf
CONF-CDS
Yangyang Wei, Wei Lv, Yongqing Miao
2021 J jnl
CAAI Trans. Intell. Technol.
Lixian Cao, Yanchun Liang, Wei Lv, Kaechang Park, Yasuhiro Miura, Yuki Shinomiya, Shinichi Yoshida
2021 conf
CAIBDA
Wei Lv, Hongliang Huang, Weiyu Tang, Tao Chen
2021 conf
AIAM (ACM)
Shujie Wang, Guanjun Hao, Wei Lv, Shuhao Chen, Lin Chen
2020 conf
ICTA
Wei Lv, Bingbing Liao, Yongjie Li, Na Ding, Liguo Sun, Zongming Duan, Yuefei Dai
2020 conf
ICTA
Yongjie Li, Biao Deng, Wei Lv, Zongming Duan, Zipeng Xie, Liguo Sun
2020 Misc conf
FAW
Wei Lv, Chenchen Wu
2020 J jnl
Int. J. Hum. Comput. Interact.
Fu Guo, Fengxiang Li, Wei Lv, Li Liu, Vincent G. Duffy
2020 J jnl
J. Frankl. Inst.
Wei Lv, Qing Ke, Kezan Li
2020 J jnl
CoRR
Zhiming Fang, Zhongyi Huang, Xiaolian Li, Jun Zhang, Wei Lv, Lei Zhuang, Xingpeng Xu, Nan Huang
2020 Misc conf
ICNC
Yibing Li, Xiaoyu Geng, Wei Lv, Han Yu, Fang Ye, Tao Jiang
2020 J jnl
Int. J. Pattern Recognit. Artif. Intell.
Hui Guo, Ying-Hua Song, Wei Lv, Xin-Yao Guo, Zhi-Wu Lei
2019 J jnl
Int. J. Appl. Earth Obs. Geoinformation
Beibei Chen, Huili Gong, Kunchao Lei, Jiwei Li, Chaofan Zhou, Mingliang Gao, Hongliang Guan, Wei Lv
2019 J jnl
计算机科学
Wen Xu, Wenai Song, Lizhen Fu, Wei Lv
2018 conf
SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI
Wei Lv, Zhuo Tang, Kenli Li, Keqin Li
2017 J jnl
IEEE Access
Kai Peng, Ding Fan, Fan Yang, Linfeng Gou, Wei Lv
2017 J jnl
Eur. J. Oper. Res.
Dehai Liu, Wei Lv, Hongyi Li, Jiafu Tang
2017 J jnl
Int. J. Online Eng.
Jianjun Wu, Xiao Feng, Huidang Zhang, Wei Lv
2017 conf
ICC
Wei Lv, Zhaoyang Zhang, Chunxu Jiao, Caijun Zhong
2017 J jnl
Neuroinformatics
Tianyu Hu, Qiufeng Xu, Wei Lv, Qian Liu
2016 conf
ICIRA (2)
Lei Hua, Xinjun Sheng, Wei Lv, Xiangyang Zhu
2016 J jnl
Simul. Model. Pract. Theory
Libi Fu, Weiguo Song, Wei Lv, Xiaodong Liu, Siuming Lo
2016 J jnl
Wirel. Pers. Commun.
Shixin Peng, Yingzhuang Liu, Zhengmin Kong, Wei Lv
2016 conf
ICIRA (2)
Wei Lv, Xinjun Sheng, Lei Hua, Xiangyang Zhu
2015 J jnl
Optim. Lett.
Wei Lv, Qiang Sun, He Lin, Ruirui Sui
2015 conf
ChinaSIP
Hong Jiang, Xiaohui Tang, Wei Lv, Yin Li
2015 B conf
Intelligent Environments (Workshops)
Nuhua Cheng, Wei Lv, YuHua Ni, Mei Li, Yong Cai
2015 J jnl
Simul.
Honglin Mu, Siuming Lo, Weiguo Song, Wei Lv, Jinhua Sun
2015 J jnl
J. Electronic Imaging
Xiaoliu Cheng, Wei Lv, Huawei Liu, Xing You, Baoqing Li, Xiaobing Yuan
2015 J jnl
Complex.
Xiaoge Wei, Wei Lv, Weiguo Song, Xiaolian Li
2014 J jnl
Simul.
Feizhou Huo, Weiguo Song, Wei Lv, Kim-Meow Liew
2014 J jnl
Simul. Model. Pract. Theory
Xiaoge Wei, Weiguo Song, Wei Lv, Xiaodong Liu, Libi Fu
2014 conf
ITSC
Shu-jie Wang, Weiguo Song, Wei Lv
2013 J jnl
IEEE Trans. Intell. Transp. Syst.
Wei Lv, Weiguo Song, Jian Ma, Zhiming Fang
2013 conf
TrustCom/ISPA/IUCC
Zhiwei Wang, Wei Lv
2013 J jnl
Wirel. Pers. Commun.
Zhiwei Wang, Kewei Sha, Wei Lv
2011 conf
ICDMA
Niya Li, Jian Zhang, Wei Lv, Chengye Jin
2011 J jnl
Appl. Math. Comput.
An Li, Wei Lv, Jianxiong Ye
2011 conf
EMEIT
Wei Lv, Hongwei Sun, Ruiyang Li, Qunyi Zhu
2011 conf
EMEIT
Wei Lv, Yandong Li, Ruiyang Li, Qunyi Zhu
2009 conf
BMEI
Yiping Jiang, Lianzhong Liu, Wei Lv, Chilong Zhao
2009 conf
Complex (1)
Wei Lv, Hong Bao, Enmin Feng
tests/unit/conftest.py
← Index tests/unit/conftest.py python
"""
Unit test configuration.

Replaces the redb.extractors package with a minimal stub so that
``from redb.extractors.database_exporters import ...`` works without
pulling in the heavy __init__.py import chain (pefile, elftools,
signify, magic, etc.).

Also stubs out redb.settings so that Elasticsearch / ClickHouse
clients are never actually created during unit tests.

Additionally installs binaryninja stubs for decompiler unit tests.

Stubs heavy third-party packages (pefile, magic, psutil, etc.) so that
redb.workers, redb.queries, redb.ingestor, and redb.s3_utils can all
be imported and patched in unit tests without requiring the real packages.
"""
import sys
import types
from pathlib import Path
from unittest.mock import MagicMock

# ---------------------------------------------------------------------------
# 0. Install binaryninja stubs FIRST — must happen before any decompiler
#    module is imported (triggered by __init__.py chain).
# ---------------------------------------------------------------------------
from tests.unit.conftest_binja_stubs import install_binja_stubs as _install_binja_stubs
_install_binja_stubs()

# ---------------------------------------------------------------------------
# 1. Stub external packages required by database_exporters.py itself,
#    the decompiler chain, and the workers/ingestor modules.
# ---------------------------------------------------------------------------
_heavy_deps = [
    # Database / networking
    "elasticsearch", "clickhouse_connect", "dotenv",
    # Binary analysis — top-level packages
    "pefile", "magic", "machofile",
    # Archive handling
    "py7zr", "pyzipper",
    # File type detection
    "magika",
    # System monitoring
    "psutil",
    # S3 / MinIO (submodule paths needed for `from minio.error import S3Error`)
    "minio", "minio.error",
    # YARA
    "yara_x",
    # Binary parsing — elftools tree
    "elftools", "elftools.elf", "elftools.elf.elffile",
    "elftools.common", "elftools.common.exceptions",
    # Code signing — signify tree
    "signify", "signify.fingerprinter", "signify.authenticode",
    # LIEF
    "lief",
    # Fuzzy hashing
    "ppdeep",
    # .NET analysis
    "dotnetfile",
    # Crypto / ASN.1
    "asn1crypto", "asn1crypto.cms", "asn1crypto.pem", "asn1crypto.x509", "asn1crypto.core",
    # Hashing
    "xxhash", "blake3", "mmh3", "numpy",
    # APK analysis
    "androguard", "androguard.core", "androguard.core.apk",
    "androguard.core.dex", "androguard.core.api_specific_resources",
    "androguard.misc",
    "permhash",
]
for _mod in _heavy_deps:
    if _mod not in sys.modules:
        try:
            __import__(_mod)
        except (ImportError, ModuleNotFoundError):
            sys.modules[_mod] = MagicMock()

# Stub urllib3 with a real Warning subclass (warnings.filterwarnings needs a class)
if "urllib3" not in sys.modules or isinstance(sys.modules.get("urllib3"), MagicMock):
    try:
        import urllib3  # noqa: F401
    except (ImportError, ModuleNotFoundError):
        _urllib3_mod = types.ModuleType("urllib3")
        _urllib3_exc = types.ModuleType("urllib3.exceptions")

        class _InsecureRequestWarning(UserWarning):
            pass

        _urllib3_exc.InsecureRequestWarning = _InsecureRequestWarning
        _urllib3_mod.exceptions = _urllib3_exc
        sys.modules["urllib3"] = _urllib3_mod
        sys.modules["urllib3.exceptions"] = _urllib3_exc

# Provide a functional ppdeep stub (tests call ppdeep.hash() and expect a string).
# Must overwrite the MagicMock that the loop above may have installed.
_ppdeep_existing = sys.modules.get("ppdeep")
if _ppdeep_existing is None or isinstance(_ppdeep_existing, MagicMock):
    _ppdeep_mod = types.ModuleType("ppdeep")
    _ppdeep_mod.__name__ = "ppdeep"

    def _ppdeep_hash(data):
        """Fake ssdeep hash — returns a deterministic placeholder."""
        if isinstance(data, str):
            data = data.encode("utf-8")
        if len(data) < 50:
            return None
        import hashlib
        h = hashlib.md5(data).hexdigest()
        return f"3:{h[:16]}:{h[16:]}"

    _ppdeep_mod.hash = _ppdeep_hash
    sys.modules["ppdeep"] = _ppdeep_mod

# Stub mmh3 if the C extension is not available
_mmh3_existing = sys.modules.get("mmh3")
if _mmh3_existing is None or isinstance(_mmh3_existing, MagicMock):
    _mmh3_mod = types.ModuleType("mmh3")
    _mmh3_mod.__name__ = "mmh3"

    def _mmh3_hash(data, seed=0):
        """Fake MurmurHash3 — deterministic hash using built-in hashlib."""
        import hashlib
        if isinstance(data, str):
            data = data.encode("utf-8")
        seed_bytes = (seed & 0xFFFFFFFF).to_bytes(8, "little")
        h = hashlib.md5(data + seed_bytes).digest()
        return int.from_bytes(h[:4], "little", signed=True)

    _mmh3_mod.hash = _mmh3_hash
    sys.modules["mmh3"] = _mmh3_mod

# Stub tlsh if the C extension is not available
if "tlsh" not in sys.modules:
    try:
        import tlsh as _real_tlsh  # noqa: F401
    except (ImportError, ModuleNotFoundError):
        _tlsh_mock = types.ModuleType("tlsh")
        _tlsh_mock.__name__ = "tlsh"

        def _tlsh_hash(data):
            """Fake TLSH hash — returns a deterministic placeholder.

            Returns empty string for data < 50 bytes or data with very
            low entropy (e.g. repeating patterns), mimicking the real
            TLSH library's "TNULL" behaviour.
            """
            if isinstance(data, str):
                data = data.encode("utf-8")
            if len(data) < 50:
                return ""
            # Real TLSH returns "" for low-entropy input
            if len(set(data)) < 8:
                return ""
            import hashlib
            return "T1" + hashlib.sha256(data).hexdigest()[:70].upper()

        _tlsh_mock.hash = _tlsh_hash
        sys.modules["tlsh"] = _tlsh_mock

# ---------------------------------------------------------------------------
# 2. Stub redb.settings (package) so module-level code never runs
# ---------------------------------------------------------------------------
_settings_mock = MagicMock()
_settings_mock.__name__ = "redb.settings"
sys.modules["redb.settings"] = _settings_mock
sys.modules["redb.settings.elasticsearch"] = MagicMock()
sys.modules["redb.settings.clickhouse"] = MagicMock()

# ---------------------------------------------------------------------------
# 3. Replace redb.extractors with a minimal package that does NOT eagerly
#    import every extractor (and their heavy deps).  Sub-module imports
#    like ``from redb.extractors.database_exporters import ...`` still work
#    because __path__ points to the real package directory.
# ---------------------------------------------------------------------------
_repo_root = Path(__file__).resolve().parents[2]
_extractors_pkg = types.ModuleType("redb.extractors")
_extractors_pkg.__path__ = [str(_repo_root / "redb" / "extractors")]
_extractors_pkg.__package__ = "redb.extractors"
sys.modules["redb.extractors"] = _extractors_pkg

# ---------------------------------------------------------------------------
# 4. Force-import redb submodules so that @patch('redb.workers.xxx'),
#    @patch('redb.queries.xxx'), etc. can resolve at decoration time.
#    This works because all heavy deps are already stubbed above.
# ---------------------------------------------------------------------------
import redb.logging_utils   # noqa: F401, E402
import redb.s3_utils         # noqa: F401, E402
import redb.queries          # noqa: F401, E402
import redb.workers          # noqa: F401, E402
import redb.ingestor         # noqa: F401, E402