Repository navigation
[AIPROFVIS-703] Report a malformed compare_files list in a project as a load error instead of crashing - #1211
Open
dhingora-amd wants to merge 2 commits into
Open
dhingora-amd wants to merge 2 commits into
dhingora-amd wants to merge 2 commits into
Conversation
dhingora-amd
requested review from
a team,
Sajeeth-Wimalasuriyan,
amokiche-amd,
drchen-amd and
tomk-amd
as code owners
November 20, 2026 16:32
dhingora-amd
temporarily deployed
to
legacy-nightly
November 20, 2026 16:32 — with
GitHub Actions
Inactive
Security scan found no critical or high findings on lines changed by this pull requestView the security scan run for complete reports. “New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta. |
drchen-amd
approved these changes
Nov 27, 2026
…are-files # Conflicts: # src/app/test/app_tests.cpp
dhingora-amd
temporarily deployed
to
legacy-nightly
November 27, 2026 19:47 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Motivation
Opening a
.rpvproject whosecompare_fileslist held a non-string entry (for example"compare_files": [1, 2]from a hand edit or a merge conflict) aborted the whole app. The open loop calledjt::Json::getString()on each entry without checking its type, and the jt gettersabort()on a type mismatch.Technical Details
Project::JsonValidForLoadnow rejects a project if anycompare_filesentry is not a string, soOpenProjectfails with the existing "The project file is invalid or corrupted" message before it reads the entries.ROCPROFVIS_ENABLE_TRACE_COMPARE, a malformed list now gets the corrupted-project message instead of "not available in this build".sys_project_malformed_compare_files_erroropens a.rpvwith"compare_files": [1, 2]and expects a failed load with the corrupted-project message.ROCPROFVIS_ENABLE_TRACE_COMPARE=ONandROCPROFVIS_ENABLE_UI_TESTS=ON.