unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 7301d8b50590c2b71fae6ad1fb94ee31f1adaad4 737 bytes (raw)
name: gnu/packages/patches/python-angr-addition-type-error.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
This fixes failures of the test_ln_gcc_O2 and other related tests
in the angr test suite.  The patch has been proposed upstream.

Taken form: https://github.com/angr/angr/pull/4443

diff --git a/angr/analyses/reassembler.py b/angr/analyses/reassembler.py
index 7a2399a60..b09b3a8cb 100644
--- a/angr/analyses/reassembler.py
+++ b/angr/analyses/reassembler.py
@@ -730,7 +730,7 @@ class Instruction:
             elif operand.type == capstone.CS_OP_MEM:
                 operand_offsets.append(capstone_instr.disp_offset)
             else:
-                operand_offsets.append(None)
+                operand_offsets.append(0)
 
         if self.addr is not None:
             self._initialize(capstone_instr.operands, operand_offsets)

debug log:

solving 7301d8b505 ...
found 7301d8b505 in https://yhetil.org/guix-patches/87h6i9bdjc.fsf@troyfigiel.com/ ||
	https://yhetil.org/guix-patches/cfe1e1ee6829877978e1f86b8172024e70bd34ec.1710101374.git.soeren@soeren-tempel.net/ ||
	https://yhetil.org/guix-patches/2d88c47aba75ad57d3e4c5aa341a975d5109c376.1707749005.git.soeren@soeren-tempel.net/

applying [1/1] https://yhetil.org/guix-patches/87h6i9bdjc.fsf@troyfigiel.com/
diff --git a/gnu/packages/patches/python-angr-addition-type-error.patch b/gnu/packages/patches/python-angr-addition-type-error.patch
new file mode 100644
index 0000000000..7301d8b505

1:22: trailing whitespace.
 
Checking patch gnu/packages/patches/python-angr-addition-type-error.patch...
Applied patch gnu/packages/patches/python-angr-addition-type-error.patch cleanly.
warning: 1 line adds whitespace errors.

skipping https://yhetil.org/guix-patches/cfe1e1ee6829877978e1f86b8172024e70bd34ec.1710101374.git.soeren@soeren-tempel.net/ for 7301d8b505
skipping https://yhetil.org/guix-patches/2d88c47aba75ad57d3e4c5aa341a975d5109c376.1707749005.git.soeren@soeren-tempel.net/ for 7301d8b505
index at:
100644 7301d8b50590c2b71fae6ad1fb94ee31f1adaad4	gnu/packages/patches/python-angr-addition-type-error.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).