UEFIFind and nvramparser.cpp bugfixes

This commit is contained in:
Cr4sh 2017-07-22 21:43:20 +03:00
parent 227be5480e
commit 9b85fac61b
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ USTATUS UEFIFind::find(const UINT8 mode, const bool count, const QString & hexPa
// Special case of freeform subtype GUID files // Special case of freeform subtype GUID files
if (indexes.second.isValid() && model->subtype(indexes.second) == EFI_SECTION_FREEFORM_SUBTYPE_GUID) { if (indexes.second.isValid() && model->subtype(indexes.second) == EFI_SECTION_FREEFORM_SUBTYPE_GUID) {
data = model->header(indexes.second).left(sizeof(EFI_FREEFORM_SUBTYPE_GUID_SECTION)); data = model->header(indexes.second);
result.append(" ").append(guidToUString(*(const EFI_GUID*)(data.constData() + sizeof(EFI_COMMON_SECTION_HEADER)))); result.append(" ").append(guidToUString(*(const EFI_GUID*)(data.constData() + sizeof(EFI_COMMON_SECTION_HEADER))));
} }

View File

@ -148,7 +148,7 @@ int main(int argc, char *argv[])
return U_SUCCESS; return U_SUCCESS;
} }
else { else {
std::cout << "UEFIFind 0.10.8" << std::endl << std::endl << std::cout << "UEFIFind 0.10.9" << std::endl << std::endl <<
"Usage: UEFIFind {header | body | all} {list | count} pattern imagefile" << std::endl << "Usage: UEFIFind {header | body | all} {list | count} pattern imagefile" << std::endl <<
" or UEFIFind file patternsfile imagefile" << std::endl; " or UEFIFind file patternsfile imagefile" << std::endl;
return U_INVALID_PARAMETER; return U_INVALID_PARAMETER;

View File

@ -1374,7 +1374,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index)
// Check variable size // Check variable size
if (variableSize > unparsedSize) { if (variableSize > unparsedSize) {
unparsedSize = 0; variableSize = 0;
} }
} }