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.

Buffer overflow works in gdb but not without it

I am on CentOS 6.4 32 bit and am trying to cause a buffer overflow in a program. Within GDB it works. …

c security buffer-overflow fortify-source memory-safety
Why I do get "Cannot find bound of current function" when I overwrite the ret address of a vulnerable program?

I want to exploit a stack based buffer overflow for education purposes. There is a typical function called with a …

c stack buffer-overflow shellcode
What is the difference between a stack overflow and buffer overflow?

What is the difference between a stack overflow and a buffer overflow in programming?

operating-system stack-overflow buffer-overflow
What is a buffer overflow and how do I cause one?

I have heard about a buffer overflow and I would like to know how to cause one. Can someone show …

c++ buffer-overflow fortify-source
How to prevent memcpy buffer overflow?

There are some binary buffer with fixed size in a program that are used to store data. And memcpy is …

c memcpy buffer-overflow fortify-source
boost::asio::buffer: Getting the buffer size and preventing buffer overflow?

I have the two following functions for sending and receiving packets. void send(std::string protocol) { char *request=new char[…

c++ boost-asio buffer-overflow
Why is this code vulnerable to buffer overflow attacks?

int func(char* str) { char buffer[100]; unsigned short len = strlen(str); if(len >= 100) { return (-1); } strncpy(buffer,str,strlen(…

c security buffer-overflow
C Code how to change return address in the code?

I just wrote a C Code which is below : #include<stdio.h> #include<string.h> void …

c buffer-overflow exploit
Why does this for loop exit on some platforms and not on others?

I have recently started to learn C and I am taking a class with C as the subject. I'm currently …

c debugging undefined-behavior buffer-overflow
Is sscanf considered safe to use?

I have vague memories of suggestions that sscanf was bad. I know it won't overflow buffers if I use the …

c security buffer-overflow scanf