Formal reviews of all review-sets; fix missing tags and ParseStartLine crash#85
Merged
Malcolmnixon merged 2 commits intomainfrom Mar 31, 2026
Merged
Conversation
…ts, fix ParseStartLine crash Agent-Logs-Url: https://github.com/demaconsulting/SarifMark/sessions/110928e5-4c46-481a-b2a6-b186e2b588d1 Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Run code review sub-agent for all review-sets
Formal reviews of all review-sets; fix missing tags and ParseStartLine crash
Mar 31, 2026
Malcolmnixon
approved these changes
Mar 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR applies fixes found during formal reviews across the ReviewMark review-sets: it standardizes requirement metadata in reqstream docs and hardens SARIF parsing against malformed/oversized numeric input.
Changes:
- Add missing
tags: [public]to all system-level requirements indocs/reqstream/sarifmark-system.yaml. - Prevent a crash when
startLineexceedsInt32.MaxValueby switching toTryGetInt32()inSarifResults.ParseStartLine.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/reqstream/sarifmark-system.yaml | Adds missing tags: [public] fields for consistency with other reqstream requirement specs. |
| src/DemaConsulting.SarifMark/Sarif/SarifResults.cs | Makes SARIF startLine parsing resilient to out-of-range values by avoiding overflow exceptions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Apr 6, 2026
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.
Ran formal code reviews across all 12 review-sets defined in
.reviewmark.yaml. Two issues were identified and fixed.Changes
docs/reqstream/sarifmark-system.yaml— Add missingtags: [public]All 9 system-level requirements were missing the
tagsfield that every other subsystem requirement carries. Addedtags: [public]to each, consistent with the rest of the requirements files.src/DemaConsulting.SarifMark/Sarif/SarifResults.cs— Fix crash on oversizedstartLineParseStartLinecalledGetInt32()unconditionally, which throwsFormatExceptionwhen a SARIF file contains astartLinevalue exceedingInt32.MaxValue. That exception was not caught by theReadmethod'scatch (JsonException)block, causing an unhandled crash.Fixed by replacing
GetInt32()withTryGetInt32()— invalid or out-of-range values now silently returnnullinstead of crashing:Type of Change
Related Issues
Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
dotnet build --configuration Releasedotnet test --configuration Releasedotnet run --project src/DemaConsulting.SarifMark --configuration Release --framework net10.0--no-build -- --validateCode Quality
dotnet format --verify-no-changesQuality Checks
Please run the following checks before submitting:
./lint.sh(Unix/macOS) orcmd /c lint.bat/./lint.bat(Windows)Testing
Documentation
Additional Notes
Reviews with no findings: SarifMark-System, SarifMark-Cli, SarifMark-SelfTest, SarifMark-Utilities, SarifMark-Program, SarifMark-Context, SarifMark-SarifResult, SarifMark-Validation, SarifMark-PathHelpers.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1108766/chrome-linux.zip/home/REDACTED/work/_temp/ghcca-node/node/bin/node node install.js 127.0.0.1:039659 --role client --parentprocessid 18474 --telemetryoptedin false maConsulting.Sarrev-parse rgo/bin/bash bash --no�� --noprofile fgrep t/dotnet 1 DemaConsulting.Sexec ark.dll t/dotnet(http block)If you need me to access, download, or install something from one of these locations, you can either: