[llvm] [llvm][MachO] Fix integer truncation in rebase/bind parsing (PR #89337)

Cyndy Ishida via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 17:10:40 PDT 2024


================
@@ -0,0 +1,6 @@
+// A valid MachO object with a bind table containing an opcode
+// `BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB` with negative skip value
+// (0xFFFFFFFFFFFFFFF0).
+// libObject should be able to correctly parse the bind table without crashing.
+
+RUN: yaml2obj %p/Inputs/MachO/bind-negative-skip.yaml | llvm-objdump --bind --macho -
----------------
cyndyishida wrote:

Not crashing is one part, whats the expected output?

https://github.com/llvm/llvm-project/pull/89337


More information about the llvm-commits mailing list