Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Hacking crashes  (Read 1010 times)

Jack_Bread

  • Bay Watcher
  • 100% FRESH ♥HIPPO♥
    • View Profile
Hacking crashes
« on: November 02, 2012, 04:30:32 am »

Playing Nightmare mode, I started up a Liberal Guardian to hopefully sway the populous. I got a hacker to get some juicy information that my writers could use for special editions, but for some reason, it always crashes whenever I get a message about my hacker doing something. It gives me an error whenever it happens, though.
Spoiler (click to show/hide)
Sometimes it gives the same error with 'msg' instead of 'truehack'.
Any ideas?

Yannanth

  • Guest
.
« Reply #1 on: November 02, 2012, 10:00:46 am »

.
« Last Edit: November 21, 2016, 04:58:51 pm by Yannanth »
Logged

Carlos Gustavos

  • Bay Watcher
    • View Profile
Re: Hacking crashes
« Reply #2 on: November 02, 2012, 12:15:51 pm »

It appears there is no check for if the result message exceeds the size of the message buffer, so it can end up overwriting something else in memory. You can avoid this by shortening your hacker's name.
Logged

dreadmullet

  • Bay Watcher
  • Inadequate Comedian
    • View Profile
Re: Hacking crashes
« Reply #3 on: November 02, 2012, 12:20:53 pm »

How long is the person's name? I dived into the code, and I think if your hacker's name is longer than 27 characters, it could write past a char[80], doing crazy things to memory. Just to check, could you upload your save somewhere so I or someone else could find out if this is true?
Logged

Akura

  • Bay Watcher
    • View Profile
Re: Hacking crashes
« Reply #4 on: November 02, 2012, 01:16:51 pm »

How long is the person's name? I dived into the code, and I think if your hacker's name is longer than 27 characters, it could write past a char[80], doing crazy things to memory. Just to check, could you upload your save somewhere so I or someone else could find out if this is true?
That Guy Who's Good With Computer is 33 characters long, so it's probably doing that :-\? I am sadly less programming-saavy than I really wish I was.
Logged
Quote
They asked me how well I understood theoretical physics. I told them I had a theoretical degree in physics. They said welcome aboard.
... Yes, the hugs are for everyone.  No stabbing, though.  Just hugs.