RIPE icon indicating copy to clipboard operation
RIPE copied to clipboard

doesn't compile with gcc or clang

Open jugonz opened this issue 10 years ago • 3 comments

Using gcc (4.8.2) and clang (3.3 or 3.6) ripe_attack_generator.c fails to compile:

Here are two errors I've seen a few times:

/source/ripe_attack_generator.c:80:34: error: initializer element is not a compile-time constant 0xDEADBEEF,0xDEADBEEF,0xDEADBEEF,&exit, &cf_ret_param,448}; //448 => 0700 mode ^~~~~ ./source/ripe_attack_generator.c:112:27: error: initializer element is not a compile-time constant static int rop_sled[7] = {&gadget1 + 62,0xFFFFFFFF,&gadget2 + 62,&cf_ret... ^~~~~~~~~~~~~

Any idea what it would take to fix this? From a cursory look at the file, it looks like these could just be filled in at runtime...

jugonz avatar May 11 '15 20:05 jugonz

Hi,

This must be something that happened due to a change in what's allowed in GCC and what's not. I will have a look and let you know.

Nick

nikifor avatar May 11 '15 23:05 nikifor

This issue seems not effecting 32-bit builds. I faced the same issue exactly as @jugonz described, but it disappeared after passing '-m32' to GCC (5.2.0) or Clang (3.6.2).

TOCK-Chiu avatar Jul 29 '15 08:07 TOCK-Chiu

@jugonz I have the same problem with you, Have you solve it?

sttscc avatar Dec 21 '16 07:12 sttscc