bug fixes related to file saving (#931) (#946)

* fix the file path resetting issue of GUI in the case where different modules have different fpath setting.

* fix stack-buffer-overflow issue when using HDF5 HDF5DataFile::parameterDataTypes have 64bit type (i.e. STD_U64LE), the size of fill_value should be at least 8 bytes.

* change the type of fill_value to uint64_t

Co-authored-by: Z.H. Li <zhenghenge@gmail.com>
This commit is contained in:
2024-08-19 13:45:25 +02:00
committed by GitHub
parent d57643434d
commit ff107faae6
3 changed files with 4 additions and 4 deletions

View File

@ -839,8 +839,8 @@ void qTabMeasurement::UpdateProgress() {
int qTabMeasurement::VerifyOutputDirectoryError() {
try {
auto retval = det->getFilePath();
for (auto &it : retval) {
det->setFilePath(it);
for (size_t i = 0; i < retval.size(); i++) {
det->setFilePath(retval[i], {i});
}
return slsDetectorDefs::OK;
}