Top "Buffer-overflow" questions

Usually occurs when you attempt to copy data into a buffer without checking for sufficient space, causing data to be overwritten in neighboring cells.

How to find place of buffer overflow and memory corruptions?

valgrind can't find anything useful. I'm confused. Symptomes: my data corrupted by a malloc() call return address of my function …

c valgrind buffer-overflow memory-corruption
GCC how to detect stack buffer overflow

Since there is an option -fstack-protector-strong in gcc to detect stack smashing. However, it can not always detect stack buffer …

c gcc buffer-overflow fortify-source
heap overflow attacks

How heap overflow attacks are done? In case of stackoverflow attacks, the attacker replaces the function return address with his …

security buffer-overflow
strcpy when dest buffer is smaller than src buffer

I am trying to understand the difference/disadvantages of strcpy and strncpy. Can somebody please help: void main() { char src[] = "…

c string buffer-overflow strcpy
How to conduct buffer overflow in PHP/Python?

Here is an example in c: #include <stdio.h> #include <string.h> void bad() { printf("Oh …

php python buffer-overflow
Shellcode for a simple stack overflow: Exploited program with shell terminates directly after execve("/bin/sh")

I played around with buffer overflows on Linux (amd64) and tried exploiting a simple program, but it failed. I disabled …

security assembly buffer-overflow shellcode
Simple buffer overflow and shellcode example

I've been trying to run Aleph One's example in order to get a BOF and open a shell. This is …

c security buffer-overflow shellcode
Buffer overflow in C

I'm attempting to write a simple buffer overflow using C on Mac OS X 10.6 64-bit. Here's the concept: void function() { …

c buffer-overflow
What are the prevention techniques for the Buffer overflow attacks?

what are the ideas of preventing buffer overflow attacks? and i heard about Stackguard,but until now is this problem …

security programming-languages buffer-overflow
How can I invoke buffer overflow?

I got a homework assignment asking me to invoke a function without explicitly calling it, using buffer overflow. The code …

c pointers stack-trace buffer-overflow fortify-source