Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcoffpeparser_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 Intel Corporation.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4// no, this is not a misspelling of "coffeeparser"
5// Qt-Security score:significant reason:default
6#ifndef QCOFFPEPARSER_H
7#define QCOFFPEPARSER_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include "qlibrary_p.h"
21
22#if defined(Q_OS_WIN) || defined(Q_OS_CYGWIN)
23
24QT_BEGIN_NAMESPACE
25
26struct QCoffPeParser
27{
28 static QLibraryScanResult parse(QByteArrayView data, QString *errMsg);
29};
30
31QT_END_NAMESPACE
32
33#endif // Q_OS_WIN || Q_OS_CYGWIN
34
35#endif // QCOFFPEPARSER_H
static QT_WARNING_PUSH const WORD ExpectedMachine
static QLatin1StringView findSectionName(const IMAGE_SECTION_HEADER *section, QByteArrayView stringTable)
static constexpr auto metadataSectionName() noexcept
#define peDebug
static constexpr bool IncludeValidityChecks
static std::optional< QByteArrayView > findStringTable(QByteArrayView data, const IMAGE_NT_HEADERS *ntHeader, const ErrorMaker &error)
static constexpr QLatin1StringView truncatedSectionName
static const WORD ExpectedOptionalHeaderSignature
static const IMAGE_SECTION_HEADER * findSectionTable(QByteArrayView data, const IMAGE_NT_HEADERS *ntHeader, const ErrorMaker &error)