Comments (2)
crash is at strncmp
, presumably because of second argument (ESI: 0x00000001
).
one level up the stack is 44858D
(which I dubbed versioncmp
). Looks like it's compares it's arguments against contents of th08_0100d.ver
from the dat. The check always succeeds if pointer to file contents is NULL, but here it seems that the pointer is 0x00000001 in this case. That pointer is located at this + 0x360
. Additionally, size of the file is stored at this + 0x35C
.
another level up is 45A5E0
(score_load
), which checks the score file and recreates it, if it has errors. The object used as this
in versioncmp
call is 17CE758
.
Conclusion: pointer to th08_0100d.ver
contents is at 17CEAB8
. Something corrupts that memory.
Will do further investigation with a debugger later.
from thcrap-tsa.
The scorefile has a sort of checksum in it that is used to validate which version the scorefile was made in. The game will loop through th08_0100d.ver until it finds a line that matches the checksum in the scorefile. That's it, the game reaching the end of the file will not stop it from continuing to loop, then reading past the file and reaching invalid memory. cc8f8db will even write a valid checksum if the one in the scorefile is invalid
from thcrap-tsa.
Related Issues (20)
- Fix low FPS if a mouse, graphics tablet, or game controller is plugged in HOT 5
- TH08: MIDI BGM ignores the BGM volume setting
- TH06/TH07: Glitched input if game window was out of focus during the loading screen HOT 1
- TH09: Don't play the title screen BGM for a few milliseconds before switching to the conversation BGM HOT 1
- TH10: the base_tsa patch seemingly distorts position of hint
- Update real_bullet_size for unsupported games
- TH18tr: Character portraits aren't properly aligned when replaced HOT 4
- TH13 - TH17: Clear bonus doesn't get added to score when watching replay
- [MoF] Some replays end prematurely due to stage practice replay crash fix HOT 5
- TH10: script_latin breaks hints
- TH18: Gluttonous Centipede desyncs multi-stage replays
- TH175: Flandre's Scenario/355/en translation isn't showing up in-game HOT 2
- TH09: Why is this font wrong? HOT 3
- make zun's mutex error message translatable
- prevent zun's mutex from resetting the config HOT 2
- TH18 custom.exe: Translations not supported HOT 1
- EoSD spell card result text glitch
- TH07/???: Game seems to be constantly creating and destroying it's window if the cfg file is 0 bytes
- TH185: character names on the market selection screen, from world.txt
- TH185/???: Game will create window outside the space available by monitors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thcrap-tsa.