Skip to main content

All Questions

Tagged with
0 votes
1 answer
60 views

cannot launch shell (overflow attack example)?

I am trying this example from the all time classic Smashing The Stack For Fun And Profit https://www.cs.cornell.edu/courses/cs513/2005fa/paper.alpeh1.stacksmashing.html testsc.c char shellcode[] = ...
user3602697's user avatar
1 vote
1 answer
93 views

Local variable allocation crashes the stack in embedded C on cortexm4 and operating system

Details: embedded C, cortex M4 with operating system (RTX Kernel), compiled with ARM Compiler V5.06 update6 and Microlib. Inside a periodic task there are some functons call, one is a debug function: /...
Catosh's user avatar
  • 317
0 votes
1 answer
106 views

Is out-of-scope local variables' memory reused?

struct Big { char data[5000]; }; extern int some_input; int main() { switch (some_input) { case 0: { struct Big big; big.data[0] = 0; // just try to do something ...
Erciyuanshagou's user avatar
3 votes
0 answers
96 views

Buffer Overflow Exploit to Redirect Execution to Another Function Causes Segmentation Fault

I am working on a security engineering assignment where I need to create a buffer overflow exploit to change the execution flow of a C program. The goal is to overwrite the return address and redirect ...
Hade Bayaa's user avatar
0 votes
1 answer
83 views

Shellcode stub got exited right after executed in Buffer Overflow Exploitation

I am currently playing around with some exploitation techniques in 64-bit Intel executable. My program was compiled with canary protection disabled (-fno-stack-protector), buffer overflow error ...
Anh Phan's user avatar
0 votes
3 answers
192 views

How to recover midstream from a stack buffer overrun

This question is out of my expertise. How do you recover, midstream, from a stack overflow overrun in "C"? Where you are using a character variable declared as char string[12], and you move ...
CC_Fingers's user avatar
-1 votes
1 answer
89 views

How to predict a stack overflow? How and which memory is stored in stack? [closed]

I implemented a floodfill recursive function to check if a player will be able to reach the map exit or it'll be stacked surrounded by walls. So a simple map would look like this: 111111111 100010C01 ...
arzel's user avatar
  • 45
0 votes
0 answers
41 views

Ran on an MCU (STM32F1), doubly-linked list code results in a call of HardFault() due to stack overflow

So there is code that is supposed to poll a GPIO read pin at a certain rate and put the SET/RESET result to a doubly linked list of 16 elements, deleting the first added (firstIn) element. formArray() ...
2222's user avatar
  • 1
3 votes
1 answer
216 views

Strange size change in core dump file

I have the following C snippets that both obviously cause stack overflow error: a.c int f(int i) { f(i); } int main() { f(1); } b.c int f(int i) { f(i+1); } int main() { f(1); } ...
Amir reza Riahi's user avatar
1 vote
2 answers
187 views

Prevent stack memory usage for recursive function in C

This C code does DBSCAN - Density-based spatial clustering of applications with noise. It's a cluster algorithm for turining unsupervised (no labels) data to become supervised (labels e.g class number)...
euraad's user avatar
  • 2,856
-2 votes
2 answers
141 views

Stack overflow in a recursive function

I have two functions, I could get rid of the one that makes the mistake, but I don't really want to rewrite almost all my code away, so I need to fix that in any other way. int Reveal(char*** arr, int*...
Felipe's user avatar
  • 9
1 vote
0 answers
116 views

statfs attempting large write causing stack overflow

I'm currently using statfs to get some information about a path and I'm getting a runtime stack overflow error: ==33949==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x000103d3d970 at pc ...
AbsoluteBeginner's user avatar
1 vote
1 answer
90 views

Loop error leads to stack buffer overflow in C

It is part of the assignment. Basically, there should be "These are not Palindromes!" or "These are Palindromes!" coming out, but whenever I run it and input chars (though it ...
Ada's user avatar
  • 29
0 votes
1 answer
138 views

what's causing a stack overflow?

I've been following along this article that creates an icosahedron and subdivide it into an icosphere to use for a game i'm making that i decided to try and port over to C from C#. But when i finished ...
user1194385's user avatar
3 votes
1 answer
109 views

Understanding of return address calculation from Hacking: the art of exploitation?

The program is shown in the similar thread here. Let's assume that my OS doesn't implement ASLR or other protections from buffer overflow. Long story short, the author is spawning a child process from ...
noob_user's user avatar
  • 107

15 30 50 per page
1
2 3 4 5
26