From b0febf7b64d30135122ba7c9fd117d0c89532ce0 Mon Sep 17 00:00:00 2001 From: jorik Date: Mon, 13 Nov 2023 15:05:39 +0100 Subject: [PATCH 1/2] Updated to work with most recent angr version --- Dockerfile | 1 + bdsig/lmd.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ae1ece..e993c7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ ## -*- docker-image-name: "libmatch" -*- FROM angr/angr MAINTAINER edg@cs.ucsb.edu +USER ROOT RUN apt-get update && apt-get install -y sudo automake virtualenvwrapper python3-pip python3-dev python-dev build-essential libxml2-dev \ libxslt1-dev git libffi-dev cmake libreadline-dev libtool debootstrap debian-archive-keyring \ libglib2.0-dev libpixman-1-dev screen binutils-multiarch nasm vim libssl-dev diff --git a/bdsig/lmd.py b/bdsig/lmd.py index f9a63b4..8cc0d6e 100644 --- a/bdsig/lmd.py +++ b/bdsig/lmd.py @@ -150,6 +150,8 @@ def __init__(self, project, function): self.call_sites[n] = call_targets def __getattr__(self, a): + if a == "__getstate__" or a == "__setstate__": # to ensure correct pickling + raise AttributeError if "orig_function" in self.__dict__: return getattr(self.orig_function, a) else: From 84188499a5ecf3d82b1e438a07ebd0299018a1d3 Mon Sep 17 00:00:00 2001 From: jorik Date: Wed, 6 Dec 2023 10:19:00 +0100 Subject: [PATCH 2/2] Fixed dockerfile typo --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e993c7e..2b2aae6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ## -*- docker-image-name: "libmatch" -*- FROM angr/angr MAINTAINER edg@cs.ucsb.edu -USER ROOT +USER root RUN apt-get update && apt-get install -y sudo automake virtualenvwrapper python3-pip python3-dev python-dev build-essential libxml2-dev \ libxslt1-dev git libffi-dev cmake libreadline-dev libtool debootstrap debian-archive-keyring \ libglib2.0-dev libpixman-1-dev screen binutils-multiarch nasm vim libssl-dev