Blame SOURCES/rhbz1643997.0024-PR23860-bugfix-incorrect-comparison-direction-in-str.patch

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