Skip to content

Context default values and side-effects #141

@zachriggle

Description

@zachriggle

The context module tries to be helpful in setting sane default values for some settings based on other settings. Unfortunately these are incomplete, and have potentially unwanted side-effects.

Side-Effects

>>> from pwn import *
>>> context.word_size = 1337
>>> context.arch = 'i386'
>>> assert 1337 == context.word_size
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError

Incomplete

There's no way to set a default endianness. For example, PowerPC is generally big-endian, but setting arch="powerpc" does not set this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions