Skip to content

Pushstr generates non-optimal instructions for single-character strings #319

@zachriggle

Description

@zachriggle
$ shellcraft i386.pushstr A | disasm
   0:   68 01 01 01 01          push   0x1010101
   5:   81 34 24 40 01 01 01    xor    DWORD PTR [esp],0x1010140

Realistically, this should look something like

$ asm 'push 0x41' | disasm
   0:   6a 41                   push   0x41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions