Skip to content

doesn't compile with gcc or clang #2

@jugonz

Description

@jugonz

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions