forked from irods/irods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[irods#7859] Convert null pointer to empty string for checksum output…
… parameter of msiDataObjChksum. Before this commit, the following conditions could lead to a segfault. - The python rule engine plugin is enabled - A rule written in python invokes msiDataObjChksum - Checksum verification is performed and no issues are found The segfault is the result of the microservice setting the checksum output parameter to a null pointer (because it did not find any issues) which eventually leads to iRODS attempting to construct a std::string with the null pointer. The construction of the std::string occurs in convertFromMsParam. Passing a null pointer to the std::string constructor is undefined behavior.
- Loading branch information
1 parent
0295555
commit e4b196d
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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