From e15e0e7b71d869d6a066aae777cda9a444e28615 Mon Sep 17 00:00:00 2001 From: philsmd Date: Fri, 8 May 2020 11:11:47 +0200 Subject: [PATCH] fixes possible off-by-one verification problem with -m 22500 = MultiBit Classic --- OpenCL/m22500_a0-optimized.cl | 4 ++-- OpenCL/m22500_a0-pure.cl | 4 ++-- OpenCL/m22500_a1-optimized.cl | 4 ++-- OpenCL/m22500_a1-pure.cl | 4 ++-- OpenCL/m22500_a3-optimized.cl | 2 +- OpenCL/m22500_a3-pure.cl | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/OpenCL/m22500_a0-optimized.cl b/OpenCL/m22500_a0-optimized.cl index 6c91fbe65..4940e8004 100644 --- a/OpenCL/m22500_a0-optimized.cl +++ b/OpenCL/m22500_a0-optimized.cl @@ -554,7 +554,7 @@ KERNEL_FQ void m22500_m04 (KERN_ATTR_RULES ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: @@ -1149,7 +1149,7 @@ KERNEL_FQ void m22500_s04 (KERN_ATTR_RULES ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: diff --git a/OpenCL/m22500_a0-pure.cl b/OpenCL/m22500_a0-pure.cl index f52f646d8..41782e501 100644 --- a/OpenCL/m22500_a0-pure.cl +++ b/OpenCL/m22500_a0-pure.cl @@ -263,7 +263,7 @@ KERNEL_FQ void m22500_mxx (KERN_ATTR_RULES ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: @@ -559,7 +559,7 @@ KERNEL_FQ void m22500_sxx (KERN_ATTR_RULES ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: diff --git a/OpenCL/m22500_a1-optimized.cl b/OpenCL/m22500_a1-optimized.cl index 9637b7b86..c42de1689 100644 --- a/OpenCL/m22500_a1-optimized.cl +++ b/OpenCL/m22500_a1-optimized.cl @@ -613,7 +613,7 @@ KERNEL_FQ void m22500_m04 (KERN_ATTR_BASIC ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: @@ -1268,7 +1268,7 @@ KERNEL_FQ void m22500_s04 (KERN_ATTR_BASIC ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: diff --git a/OpenCL/m22500_a1-pure.cl b/OpenCL/m22500_a1-pure.cl index 4f9bc963f..00af53ae4 100644 --- a/OpenCL/m22500_a1-pure.cl +++ b/OpenCL/m22500_a1-pure.cl @@ -267,7 +267,7 @@ KERNEL_FQ void m22500_mxx (KERN_ATTR_BASIC ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: @@ -569,7 +569,7 @@ KERNEL_FQ void m22500_sxx (KERN_ATTR_BASIC ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: diff --git a/OpenCL/m22500_a3-optimized.cl b/OpenCL/m22500_a3-optimized.cl index cf37c4288..ce93eb6a3 100644 --- a/OpenCL/m22500_a3-optimized.cl +++ b/OpenCL/m22500_a3-optimized.cl @@ -542,7 +542,7 @@ DECLSPEC void m22500 (SHM_TYPE u32a *s_te0, SHM_TYPE u32a *s_te1, SHM_TYPE u32a } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: diff --git a/OpenCL/m22500_a3-pure.cl b/OpenCL/m22500_a3-pure.cl index d7db084a7..ddc002e57 100644 --- a/OpenCL/m22500_a3-pure.cl +++ b/OpenCL/m22500_a3-pure.cl @@ -276,7 +276,7 @@ KERNEL_FQ void m22500_mxx (KERN_ATTR_VECTOR ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: @@ -587,7 +587,7 @@ KERNEL_FQ void m22500_sxx (KERN_ATTR_VECTOR ()) } else if (first_byte == 0x0a) // \n => bitcoinj { - if ((out[0] & 0x0000ff00) > 0x00007e00) continue; // second_byte + if ((out[0] & 0x0000ff00) > 0x00007f00) continue; // second_byte // check for "org." substring: