![]() |
Qt 6.x
The Qt SDK
|
#include "qcoffpeparser_p.h"
#include <qendian.h>
#include <qloggingcategory.h>
#include <qnumeric.h>
#include <optional>
#include <qt_windows.h>
Go to the source code of this file.
Macros | |
#define | peDebug if (false) {} else QNoDebug() |
Functions | |
static constexpr auto | metadataSectionName () noexcept |
QT_WARNING_POP const IMAGE_NT_HEADERS * | checkNtHeaders (QByteArrayView data, const ErrorMaker &error) |
static const IMAGE_SECTION_HEADER * | findSectionTable (QByteArrayView data, const IMAGE_NT_HEADERS *ntHeader, const ErrorMaker &error) |
static std::optional< QByteArrayView > | findStringTable (QByteArrayView data, const IMAGE_NT_HEADERS *ntHeader, const ErrorMaker &error) |
static QLatin1StringView | findSectionName (const IMAGE_SECTION_HEADER *section, QByteArrayView stringTable) |
Variables | |
static constexpr bool | IncludeValidityChecks = true |
static constexpr QLatin1StringView | truncatedSectionName |
static QT_WARNING_PUSH const WORD | ExpectedMachine |
static const WORD | ExpectedOptionalHeaderSignature |
Definition at line 33 of file qcoffpeparser.cpp.
QT_WARNING_POP const IMAGE_NT_HEADERS * checkNtHeaders | ( | QByteArrayView | data, |
const ErrorMaker & | error | ||
) |
Definition at line 197 of file qcoffpeparser.cpp.
References error, ExpectedMachine, ExpectedOptionalHeaderSignature, peDebug, and qMax().
|
static |
Definition at line 295 of file qcoffpeparser.cpp.
References QByteArrayView::data(), QByteArrayView::isEmpty(), ok, ptr(), qstrnlen(), QByteArrayView::size(), and QByteArrayView::toUInt().
|
static |
Definition at line 242 of file qcoffpeparser.cpp.
References error, peDebug, and qAddOverflow().
|
static |
Definition at line 267 of file qcoffpeparser.cpp.
References error, and qAddOverflow().
|
inlinestaticconstexprnoexcept |
Definition at line 22 of file qcoffpeparser.cpp.
|
static |
Definition at line 39 of file qcoffpeparser.cpp.
Referenced by checkNtHeaders().
|
static |
Definition at line 62 of file qcoffpeparser.cpp.
Referenced by checkNtHeaders().
|
staticconstexpr |
Definition at line 20 of file qcoffpeparser.cpp.
|
staticconstexpr |
Definition at line 23 of file qcoffpeparser.cpp.