-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashing if you set cpu speed to 1000 #3301
Comments
Hmm that's really bad. Yeah, will have to do a 0.9.1 sooner than I expected... |
Call stack of the crash(it's the same crash for both ways of triggering it):
|
Additional info: "Run-Time Check Failure #2 - Stack around the variable 'temp' was corrupted." |
It seems to be newui related |
Yes, I know. |
I'm sure the bug is here: void PopupSliderChoice::Draw(UIContext &dc) {
Choice::Draw(dc);
char temp[4];
sprintf(temp, "%i", *value_);
dc.Draw()->DrawText(dc.theme->uiFont, temp, bounds_.x2() - 12, bounds_.centerY(), 0xFFFFFFFF, ALIGN_RIGHT | ALIGN_VCENTER);
} 4 just isn't very long. -[Unknown] |
Aha, that would explain it. Perhaps 32 would be more reasonable to allow room for growth? |
An unsigned 32-bit integer can be 10 characters long, so that'd be 11. But sure, 32 should be a nice reasonable safe value. -[Unknown] |
Thanks for spotting that, @unknownbrackets. |
I think this can be closed now. |
Don't know who will actually set it to 1000 but it crashes if you hit ok while 1000 is selected
Also if you manually set it to 1000,when you try to enter Game Settings=>System ppsspp will crash
The text was updated successfully, but these errors were encountered: