sorib / truecrack

Automatically exported from code.google.com/p/truecrack
GNU General Public License v3.0
0 stars 0 forks source link

enable-cpu: even password is found, it is said not found (and then not shown) #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem:
svn checkout http://truecrack.googlecode.com/svn/ truecrack-read-only
cd truecrack-read-only/
./configure --enable-cpu
make

(it is relevant that _GPU_ is not defined)

Steps:
src/truecrack -t test/ripemd160_aes.test.tc -c tes -m 4

  TrueCrack v3.5
  Website: http://code.google.com/p/truecrack
  Contact us: infotruecrack@gmail.com
  No found password
  Total computations:     "61"

Adding --verbose reveals that it found correct password.

core_charset defines local 'status' which shadows global 'status' and thus /* 
3. Check the result */ on core thinks status != 1.

First fix what comes in my mind (works at least in this test-case):

Index: src/Main/Core.c
===================================================================
--- src/Main/Core.c     (revision 61)
+++ src/Main/Core.c     (working copy)
@@ -408,7 +408,7 @@
        void core_charset(void) {

                /* Local variables */
-               short int status=0;                     // value for the found 
rigth key
+               //short int status=0;                   // value for the found 
rigth key
                uint64_t j;                             // counters for temporany cycles

Original issue reported on code.google.com by aapo.rantalainen on 27 Feb 2014 at 2:37