Tidy the index fetcher - #75
Merged
Merged
Conversation
- A value above int.MaxValue wrapped negative and passed the ceiling. - Parse the body directly, so the check needs no cast, catch or await.
Maximilian-Nesslauer
requested review from
MrJeranimo,
PlazmaBoltz and
averageksp
September 3, 2026 21:21
Collaborator
Coverage Report for CI Build 33807543850Coverage increased (+0.004%) to 92.599%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
MrJeranimo
approved these changes
Sep 3, 2026
MrJeranimo
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for catching the things I missed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
snapshot_versionwas read as auintto keep negatives out and then cast back toint, and the cast wraps for anything aboveint.MaxValue, so the value came out negative and passed the ceiling:The rest:
SnapshotVersions.Highestreplaces the hardcoded1and its two "change this later" comments. Useful for Read the index snapshot as a mod source #44MemoryStream, which also lets the check stop beingasync.out _for the three properties that are only checked for presence.<GenerateAssemblyInfo>false</GenerateAssemblyInfo>comes back out ofBorea.Storage.Tests. The duplicate attributes it was aimed at come from the fixture projects sitting inside the test project folder, and theCompile RemoveonFixtures\**from Read the installed game version from KSA.dll #57 already answers that. I removed the flag with both fixtureobj/**/*.AssemblyInfo.csfiles on disk.