Questions tagged [stack-based]
23 questions
1
vote
1 answer
Stackbased buffer overrun
When running my code I get the following error:
Unhandled exception at 0x00BA16A0 in GameLauncher.exe: Stack cookie instrumentation code detected a stack-based buffer overrun.
I have no idea what could be causing this. It is caused with the…

KingRaider
- 19
- 2
- 9
0
votes
0 answers
How to build a lab with ASLR and DEP turned off to prepare a remote, stack-based buffer overflow exploit for a pentesting certification exam?
For my first pentesting certification exam I have to prepare the virtual lab in order to locally analyze a vulnerable binary and build a BOF-exploit, which I then have to use against a remote target machine. As far as I know I will not have any…

stack_canary
- 1
- 1
0
votes
0 answers
Stack Based Virtual Machine - do compiled functions have their own "space"?
I'm a complete novice with bytecode VM's so forgive the basic question.
While digging into some resources to learn more about this stuff, I came across Terrence Parr's great video which goes over a stack VM example from his book "Language…

Solaxun
- 2,732
- 1
- 22
- 41
0
votes
1 answer
gcc app runs irregularly but clang works fine
I have written a simple stack based virtual machine you can view it's source at https://github.com/radinParsaei/VM
when I compile it with clang it works well but if it compiles with GCC in bytecodes I have coded like pop() / pop() it work irregular…

radinParsaei
- 28
- 1
- 6
0
votes
3 answers
CANNOT copying char into last address of char* ( string )?
i would like to copy data of char* to another last address of char*
illustration
var1 -> O
var2 -> K
first step
var1 -> OK
var2 -> K
copy var2 to var1
result
var1 -> OK
written code
#include
#include
void timpah(char *dest,…

capede
- 945
- 1
- 13
- 26
0
votes
1 answer
Higher-level language from stack-based language
I am interested in how a higher-level (Java-like) language could be build from a stack-based (Forth-like) language. Can anyone recommend some literature, preferably a book?
In case it helps: The application is construction of a higher-level language…

JohnF
- 17
- 1
0
votes
3 answers
.NET MSIL: How commands detect size of operands?
There is a single add command in MSIL to add two arguments (pop from stack, add, push into stack). How does it know whether it has to pop 2 bytes or 4 or 8 bytes?
In java different bytecodes (fadd, dadd, iadd, ...) but how do they handle this in…

Mahdi
- 1,871
- 2
- 24
- 41
0
votes
1 answer
Is stack-based instruction set one of the most important factors affect java's performance?
We know java adopts stack-based instruction set in case of enhencing its compatibility,but stack operation is much slower than register operation,so is it a important factor degrades the performance of java?I learned that java some times also uses…

xinghui
- 22
- 3