stackoverflow

Stack overflow error after creating a instance using 'new'

EDIT - The code looks strange here, so I suggest viewing the files directly in the link given. While working on my engine, I came across a issue that I'm unable to resolve. Hoping to fix this without any heavy modification, the code is below. void Block::DoCollision(GameObject* obj){ obj->DoCollision(this); } That is where the sta...

The implicit function __strcpy_chk() call

Hi everyone: I'm now performing a stack buffer overflow attack test on my own PC( Ubuntu 9.10, gcc-4.4.1 ) based on the article http://www.tenouk.com/Bufferoverflowc/Bufferoverflow4.html. Yet I haven't achieved the goal. Each time a segfault is thrown accompanied with some error informaiton. I compile the source code, and wanna get fur...

stack overflow login

Hi, we need code same as login in stack overflow in wordpress project . similarly .login with openid like gmail, yahoo, aol ...etc. ...

Will this ever result in a stack overflow error?

Will incrementing the instance variables of an object ever lead to a stack overflow error? For example: This method (java) will cause a stack overflow error: class StackOverflow { public static void StackOverflow (int x) { System.out.println (x) ; StackOverflow(x+1) ; } public static void main (...

What other sites / resources do you use to help with programming

Possible Duplicate: What are the best programming and development related Blogs? Stack overflow has become the first place i come to whenever i have dev problem. I also like to browse when i'm killing time. Just curious to know what other general sites or resource people use regularly. ...

XDocument change all attribute names

I have an XDocument that looks similar to <root> <a> <b foo="1" bar="2" /> <b foo="3" bar="4" /> <b foo="5" bar="6" /> <b foo="7" bar="8" /> <b foo="9" bar="10" /> </a> </root> I wish to change the attribute foo to something else, and the attribute bar to something else. How...

Why urllib.urlopen doesn't (seem to) work with Stack Overflow?

I need to retrieve my info from Stack Overflow. The web page that I want to retrieve is something like this. http://stackoverflow.com/users/260127/prosseek When I run the script, it doesn't seem return any results. import urllib sock = urllib.urlopen("http://stackoverflow.com/users/260127/pros...

Illustration of buffer overflows for students (linux, C)

Hello My friend is teacher of first-year CS students. We want to show them buffer overflow exploitation. But modern distribs are protected from simples buffer overflows: HOME=`perl -e "print 'A'x269"` one_widely_used_utility_is_here --help on debian (blame it) Caught signal 11, on modern commercial redhat *** buffer overflow de...

Does this sound like a stack overflow?

I think I might be having a stack overflow problem or something similar in my embedded firmware code. I am a new programmer and have never dealt with a SO so I'm not sure if that is what's happening or not. The firmware controls a device with a wheel that has magnets evenly spaced around it and the board has a hall effect sensor that se...

What Data structure for Reputation Rules in C# (like stackoverflow)

I am currently building a system which will have entities that will have scores like reputation etc.. I will have a service that will check for certain rules having been triggered, and will perform certain logic if they are triggered. Previously I have used say an Enum for doing this when I have only had to store an id and a descriptio...

What is the difference between a segmentation fault and a stack overflow?

For example when we call say, a recursive function, the successive calls are stored in the stack. However, due to an error if it goes on infinitely the error is 'Segmentation fault' (as seen on GCC). Shouldn't it have been 'stack-overflow'? What then is the basic difference between the two? Btw, an explanation would be more helpful t...

about buffer overflow

hello guys, I am new to the ethical hacking world, and one of the most important things is the stack overflow, anyway I coded a vulnerable C program which has a char name [400] statement, and when I try to run the program with 401A's it doesn't overflow, but the book which I am following says it must overflow and the logic sense says so...

Stack Overflow Accessing Large Vector

I'm getting a stack overflow on the first iteration of this for loop for (int q = 0; q < SIZEN; q++) { cout<<nList[q]<<" "; } nList is a vector of type int with 376 items. The size of nList depends on a constant defined in the program. The program works for every value up to 376, then after 376 it stops working. Any thoughts? ...

System.StackOverflowException by forms

I'm trying to open another form with a button and it's only ok at the beginning. After a few forms made the stackoverflow error acours ! The error is on form 1, form 2 and form 3 (I started to debug multiple times): the codes are really simple. like for form 3: public partial class Form2 : Form { Form3 obrok = new Form3(); publi...

Stack Overflow on Marshal.PtrToStructure reading wmv files

Hi, I'm using a frame grabber class in order to capture and process each frame in a video. The class can be found here: http://www.codeproject.com/KB/graphics/FrameGrabber.aspx I'm having issues with running it, however. When loading the file, it attempts to marshal a video format pointer into a VideoInfoHeader (I'm using DirectShow.Net...

Java: how to avoid circual references when dumping object information with reflection?

I've modified an object dumping method to avoid circual references causing a StackOverflow error. This is what I ended up with: //returns all fields of the given object in a string public static String dumpFields(Object o, int callCount, ArrayList excludeList) { //add this object to the exclude list to avoid circual references in th...

How does Visual Studio decide the order in which stack variables should be allocated?

I'm trying to turn some of the programs in gera's Insecure Programming by example into client/server applications that could be used in capture the flag scenarios to teach exploit development. The problem I'm having is that I'm not sure how Visual Studio (I'm using 2005 Professional Edition) decides where to allocate variables on the sta...

Stack overflow error in IE 7 and 8

I have a rails application in which i am using scriptaculous,prototip,controlMModal(livepipe.net). I am getting an error in IE 7 and 8 as web page error (alert box) The error is "Stack overflow at line 1715" Versions used: scriptaculous v 1.8.3 prototip 2.2.0.2 prototype 1.6.1 controlmodal 2.2.3 (livepipe.net) ...

Creating a Stack Overflow notifier

I could not find a Stack Overflow notifier Android app so I am planning on making one. I hope that my app will serve a similar purpose as the Stack Overflow Notifier Chrome extension. This will be my first Android app so I am still unfamiliar with the platform. So I currently plan to ask the user to login by bringing up a WebView and ...

Stack Overflow when debugging application in iPhone simulator

I'm getting this every time I attempt to debug my app in the simulator: [Session started at 2010-05-11 16:16:52 -0500.] GNU gdb 6.3.50-20050815 (Apple version gdb-1467) (Wed Apr 21 06:57:21 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to chan...