simtr / PowderToypp

This repository has been moved to https://github.com/FacialTurd/The-Powder-Toy
https://github.com/FacialTurd/The-Powder-Toy
GNU General Public License v3.0
20 stars 12 forks source link

Crash on startup when logged in. #183

Closed jacob1 closed 12 years ago

jacob1 commented 12 years ago

I logged into the game, but it crashed when I went to the save browser. My login didn't save, so I tried again, and then closed tpt. When I reopened it, I got the same crash right away, at line 315 of http.cpp ( cx->thlen += sprintf(cx->thdr+cx->thlen, "%s: %s\r\n", name, data); ), it said unhandled exception writing at some location (17) Edit: More specifically, it's at line 722, when adding the sessionid to the header. The sessionid was loaded correctly (and the username too)

This might have the same cause as the other crash(es) I reported. It doesn't actually crash when not using visual studio. The other ones I could ignore by hitting continue, but this one won't go away.

Over half of all of the issues have now been created by me (: And would you maybe consider raising the number of logins you can have at once? It's okay if you don't, but i'm always getting logged out since I login in so many places (website, mod, tpt, tpt++) I guess thats 4, and the limit now if 3. All of these are on the same computer.

simtr commented 12 years ago

This issue has been fixed, the error was due to a buffer overflow, the realloc was not allocating enough space (1 byte too short, since the \r was added in a previous commit)