Blame SOURCES/rhbz1643997.0024-PR23860-bugfix-incorrect-comparison-direction-in-str.patch
|
|
132810 |
From 90b65d0e05faee00c42cd303dd155dd3d228553d Mon Sep 17 00:00:00 2001
|
|
|
132810 |
From: Serhei Makarov <smakarov@redhat.com>
|
|
|
132810 |
Date: Fri, 9 Nov 2018 16:19:17 -0500
|
|
|
132810 |
Subject: [PATCH 24/32] PR23860 bugfix: incorrect comparison direction in
|
|
|
132810 |
string_copy()
|
|
|
132810 |
|
|
|
132810 |
(Turns out this branch was flipped and it was a root cause of the havoc.)
|
|
|
132810 |
|
|
|
132810 |
* bpf-translate.cxx (bpf_unparser::emit_string_copy): Correct
|
|
|
132810 |
direction of JEQ(all_nz,0) jump instruction.
|
|
|
132810 |
---
|
|
|
132810 |
bpf-translate.cxx | 2 +-
|
|
|
132810 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
132810 |
|
|
|
132810 |
diff --git a/bpf-translate.cxx b/bpf-translate.cxx
|
|
|
132810 |
index 57a4cb107..0181380b7 100644
|
|
|
132810 |
--- a/bpf-translate.cxx
|
|
|
132810 |
+++ b/bpf-translate.cxx
|
|
|
132810 |
@@ -2667,7 +2667,7 @@ bpf_unparser::emit_string_copy(value *dest, int ofs, value *src, bool zero_pad)
|
|
|
132810 |
}
|
|
|
132810 |
|
|
|
132810 |
this_prog.mk_jcond(this_ins, EQ, all_nz, this_prog.new_imm(0),
|
|
|
132810 |
- next_block, zero_pad ? block_B[i+1] : join_block);
|
|
|
132810 |
+ zero_pad ? block_B[i+1] : join_block, next_block);
|
|
|
132810 |
}
|
|
|
132810 |
|
|
|
132810 |
// XXX: Zero-padding is only used under specific circumstances;
|
|
|
132810 |
--
|
|
|
132810 |
2.14.5
|
|
|
132810 |
|