Ledger-Donjon / rainbow

Makes Unicorn traces. Generic Side-Channel and Fault Injection simulator
GNU Lesser General Public License v3.0
172 stars 34 forks source link

Improve choice of default stack addresses #5

Open yhql opened 5 years ago

yhql commented 5 years ago

Current hardcoded values can lead to mapping problems, and changing it manually in a script is abit cumbersome.

Should implement:

protopyte commented 3 years ago

I recently did:

  emu["sp"] = 0x20002000
  emu.map_space(emu["sp"]-4096, emu["sp"])

which I wouldn't qualify as "cumbersome".

ddddavidee commented 3 years ago

I think something is implemented here : https://github.com/jevinskie/emusca ( -> https://github.com/jevinskie/emusca/blob/fd838219904bded63e91a09953c3659bcb791b16/emusca.py#L350)