UsmannQureshii / iphone-elite

Automatically exported from code.google.com/p/iphone-elite
GNU General Public License v2.0
0 stars 0 forks source link

vfdecrypt.c:138 format ‘%lu’ expects type ‘long unsigned int’ #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fresh install of Ubuntu 9.10 in vmware
2. test@ubuntu:~/Desktop$ uname -a
Linux ubuntu 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010
i686 GNU/Linux
3. Trying to Build vfdecrypt.h with gcc

What is the expected output? What do you see instead?

test@ubuntu:~/Desktop$ gcc -o vfdecrypt  vfdecrypt.c -lssl
vfdecrypt.c: In function ‘dump_v2_header’:
vfdecrypt.c:138: warning: format ‘%lu’ expects type ‘long unsigned int’,
but argument 3 has type ‘uint32_t’

I already tried making "blocksize" an long unsigned int, it then compiles
without errors, but it does not provide any output when running. The
decrypted *.dmg is not a valid file, but has an other filesize then the
original.

What version of the product are you using? On what operating system?

Ubuntu 9.10, libssl 0.9.8g-16ubuntu3.1, openssl 0.9.8g-16ubuntu3.1, gcc
4:4.4.1-1ubuntu2, Applied Issue 74 fix for Linux.

Using the default build command: 
gcc -o vfdecrypt  vfdecrypt.c -lssl

Please provide any additional information below.

Original issue reported on code.google.com by Hoi...@gmail.com on 25 Apr 2010 at 9:25

GoogleCodeExporter commented 8 years ago
I have this same exact issue. :/

Original comment by that1dud...@gmail.com on 25 Jul 2010 at 9:34

GoogleCodeExporter commented 8 years ago
Replace line 138 in .c with this:

  fprintf(stderr, "blocksize\t%u\n", pwhdr->blocksize);

It gets rid of the issue with the whole "I can't compile" error, but it still 
doesn't fix vfdecrypt. My output files are always 0kb in size. Even after 
fixing this.

Original comment by that1dud...@gmail.com on 25 Jul 2010 at 7:00