Skip to content

Commit

Permalink
Fix segfault from spiceclient (#5735)
Browse files Browse the repository at this point in the history
* Fix segfault from spiceclient

* Updated changelog
  • Loading branch information
acpaquette authored Feb 26, 2025
1 parent cb12166 commit 75682c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ ctest FunctionalTestJigsawApollo to validate this output. [#5710](https://github
- Fixed SpiceClient to handle redirect requests.
- Fixed jigsaw to default OUTADJUSTMENTH5 option to false and allow this feature to run on read-only images [#5700](https://github.com/DOI-USGS/ISIS3/issues/5700)
- Fixed Cube::fromIsd to add "LineScanTimes" table from HRSC isds [#5668](https://github.com/DOI-USGS/ISIS3/issues/5668)
- Fixed segfault in SpiceClient when an authentication error was encountered. [#5735](https://github.com/DOI-USGS/ISIS3/pull/5735)

## [9.0.0] - 09-25-2024

Expand Down
12 changes: 12 additions & 0 deletions isis/src/base/apps/spiceinit/SpiceClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ namespace Isis {
p_response = new QString();
}

if (!p_error) {
p_error = new QString();
}

*p_error = "Server expects authentication which is not currently ";
*p_error += "supported";
quit();
Expand All @@ -386,6 +390,10 @@ namespace Isis {
p_response = new QString();
}

if (!p_error) {
p_error = new QString();
}

*p_error = "Server expects authentication which is not currently ";
*p_error += "supported";
quit();
Expand All @@ -403,6 +411,10 @@ namespace Isis {
p_response = new QString();
}

if (!p_error) {
p_error = new QString();
}

*p_error = "Server expects authentication which is not currently ";
*p_error += "supported";

Expand Down

0 comments on commit 75682c1

Please sign in to comment.