From 9b85fac61b528eee5c6a65c523ce9d5dcc08cb45 Mon Sep 17 00:00:00 2001 From: Cr4sh Date: Sat, 22 Jul 2017 21:43:20 +0300 Subject: [PATCH] UEFIFind and nvramparser.cpp bugfixes --- UEFIFind/uefifind.cpp | 2 +- UEFIFind/uefifind_main.cpp | 2 +- common/nvramparser.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UEFIFind/uefifind.cpp b/UEFIFind/uefifind.cpp index 97b374c..e0583f6 100644 --- a/UEFIFind/uefifind.cpp +++ b/UEFIFind/uefifind.cpp @@ -79,7 +79,7 @@ USTATUS UEFIFind::find(const UINT8 mode, const bool count, const QString & hexPa // Special case of freeform subtype GUID files 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)))); } diff --git a/UEFIFind/uefifind_main.cpp b/UEFIFind/uefifind_main.cpp index c55e0b2..ee29196 100644 --- a/UEFIFind/uefifind_main.cpp +++ b/UEFIFind/uefifind_main.cpp @@ -148,7 +148,7 @@ int main(int argc, char *argv[]) return U_SUCCESS; } 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 << " or UEFIFind file patternsfile imagefile" << std::endl; return U_INVALID_PARAMETER; diff --git a/common/nvramparser.cpp b/common/nvramparser.cpp index 811088d..d468a9c 100644 --- a/common/nvramparser.cpp +++ b/common/nvramparser.cpp @@ -1374,7 +1374,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index) // Check variable size if (variableSize > unparsedSize) { - unparsedSize = 0; + variableSize = 0; } }