From cab945158749486bd6a92ced84237678963a1291 Mon Sep 17 00:00:00 2001 From: Zezula Ladislav Date: Mon, 30 Apr 2018 11:09:21 +0200 Subject: [PATCH] Fixed version of PELIB Fixed spaces --- deps/pelib/CMakeLists.txt | 3 ++- include/retdec/fileformat/file_format/file_format.h | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/deps/pelib/CMakeLists.txt b/deps/pelib/CMakeLists.txt index 32a9325e3..ec912e039 100644 --- a/deps/pelib/CMakeLists.txt +++ b/deps/pelib/CMakeLists.txt @@ -8,7 +8,8 @@ if(CMAKE_CXX_COMPILER) endif() ExternalProject_Add(pelib-project - URL https://github.com/avast-tl/pelib/archive/master.zip + URL https://github.com/avast-tl/pelib/archive/e653527f4b2b6130fb00225bb6d0392e49ee7080.zip + URL_HASH SHA256=fc8d6207e2046bfa51ba588b14fdfa22c756ce35338e6b8036889a7110465cf1 DOWNLOAD_NAME pelib.zip CMAKE_ARGS # This does not work on MSVC, but may be useful on Linux. diff --git a/include/retdec/fileformat/file_format/file_format.h b/include/retdec/fileformat/file_format/file_format.h index f7b936db7..7b4259a44 100644 --- a/include/retdec/fileformat/file_format/file_format.h +++ b/include/retdec/fileformat/file_format/file_format.h @@ -30,7 +30,7 @@ struct LoaderErrorInfo LoaderErrorInfo() : loaderErrorCode(0), loaderError(nullptr), loaderErrorUserFriendly(nullptr) {} - std::uint32_t loaderErrorCode; // Loader error code, cast to uint32_t + std::uint32_t loaderErrorCode; // Loader error code, cast to uint32_t const char * loaderError; const char * loaderErrorUserFriendly; }; @@ -81,11 +81,11 @@ class FileFormat : public retdec::utils::ByteValueStorage, private retdec::utils PdbInfo *pdbInfo; ///< information about related PDB debug file CertificateTable *certificateTable; ///< table of certificates Format fileFormat; ///< format of input file - LoaderErrorInfo _ldrErrInfo; ///< loader error (e.g. Windows loader error for PE files) + LoaderErrorInfo _ldrErrInfo; ///< loader error (e.g. Windows loader error for PE files) bool stateIsValid; ///< internal state of instance std::vector> secHashInfo; ///< information for calculation of section table hash - retdec::utils::Maybe signatureVerified; ///< indicates whether the signature is present and also verified - retdec::utils::RangeContainer nonDecodableRanges; ///< Address ranges which should not be decoded for instructions. + retdec::utils::Maybe signatureVerified; ///< indicates whether the signature is present and also verified + retdec::utils::RangeContainer nonDecodableRanges; ///< Address ranges which should not be decoded for instructions. /// @name Clear methods /// @{