stack-smash Questions

3

Code: int str_join(char *a, const char *b) { int sz =0; while(*a++) sz++; char *st = a -1, c; *st = (char) 32; while((c = *b++)) *++st = c; *++st = 0; return sz; } .... char a[] = &quo...
Tearoom asked 4/11, 2016 at 6:23

2

I want to be able to check if stack smashing protection (-fstack-protector-all) is enabled in an iOS app built on Xcode 9 with a target of iOS 11. I built an app with -fstack-protector-all enabled...
Boarfish asked 7/10, 2017 at 6:7

1

I was looking for a way to enable stack canaries for my ios application in swift but then i found that recent version of xcodes have the flag required to enable stack canaries is enabled by default...
Denigrate asked 4/9, 2017 at 18:45

1

Solved

I've reproduced Example 3 from Smashing the Stack for Fun and Profit on Linux x86_64. However I'm having trouble understanding what is the correct number of bytes that should be incremented to the ...
Foremast asked 2/6, 2015 at 14:23

1

Solved

I am reading Smashing the Stack for Fun and Profit (in particular, this post refers to the "Buffer Overflows" section). The article is written for a 32-bit machine however I am working on a 64-bit ...
Chipper asked 21/5, 2015 at 8:37

2

Solved

I understand what is meant by "stack smashing detected". There are already a lot of questions here regarding this. But I didn't find an answer to the following question. Take the C code int main(i...
Shupe asked 27/3, 2014 at 20:6

4

Solved

I would like to be able to force a 'double-return', i.e. to have a function which forces a return from its calling function (yes, I know there isn't always a real calling function etc.) Obviously I...
Wainscot asked 1/1, 2014 at 16:19

2

Solved

I have a complex c++ code. It's a FastCGI program, using the FastCGI C++ Class library. When I ask it for a very looooong url, I get: *** stack smashing detected ***: ./tileserve terminated E...
Hectare asked 10/4, 2012 at 11:23

4

Solved

I am trying to perform a buffer overflow attack on a program for a class assignment. Both the attack program as well as the vulnerable programme is written by me. The vulnerable code uses scanf to...
Jocundity asked 27/7, 2011 at 15:48
1

© 2022 - 2024 — McMap. All rights reserved.