Skip to content

Commit bb60937

Browse files
committed
Merge branch 'main' into release/10.1.x
2 parents 25cfe92 + 5afec8c commit bb60937

File tree

5 files changed

+39
-8
lines changed

5 files changed

+39
-8
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# ChangeLog
22

3+
## [10.1.0] - 2022-03-25
4+
Summary of changes since the 10.0.24. For more details look at rc versions.
5+
From 10.1.0 the semantic versioning will be applied.
6+
7+
### Added
8+
- Outcome: detailed execution report json output file
9+
- Log: syslog output for very high level logs
10+
- Log: multiple/parellel logs output (execution/investigation/debug)
11+
- Log: add log backtrace option to dump detailed logs (debug...) on error
12+
- Ntfs: add transparent support for WolfCompressedData
13+
- Ntfs: add transparent support for CI.CATALOGHINT
14+
- Ntfs: VolumeShadowCopy: add newest/mid/oldest targetting options
15+
- Add option to exclude volume
16+
- Add option `/nolimit:[<keyword>]` for configurated DFIR-Orc (mothership)
17+
- Test: add tools/ci/test.psm1 to facilitate test automation
18+
19+
### Changed
20+
- Yara: use newest api for better results
21+
- FastFind/GetThis: add statistics for rule profiling
22+
- FastFind/GetThis: add more detailed output on match
23+
- Improve 7z archive compatibility
24+
- Update command line documentation and interface
25+
26+
### Fixed
27+
- Many fixes
28+
29+
330
## [10.1.0-rc10] - 2022-02-22 - Release Candidate 10
431
### Added
532
- test: add functional test helper test.psd1 and test.psm1 (see tools/ci/README.md)

src/OrcLib/EmbeddedResource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class EmbeddedResource
273273

274274
private:
275275
static HRESULT _UpdateResource(
276-
HANDLE& hOutput,
276+
HANDLE hOutput,
277277
const WCHAR* szModule,
278278
const WCHAR* szType,
279279
const WCHAR* szName,

src/OrcLib/EmbeddedResource_Embed.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace std;
2626
using namespace Orc;
2727

2828
HRESULT EmbeddedResource::_UpdateResource(
29-
HANDLE& hOutput,
29+
HANDLE hOutput,
3030
const WCHAR* szModule,
3131
const WCHAR* szType,
3232
const WCHAR* szName,
@@ -56,9 +56,6 @@ HRESULT EmbeddedResource::_UpdateResource(
5656

5757
if (hOutput == INVALID_HANDLE_VALUE)
5858
{
59-
// Calling EndUpdateResource will make the handle invalid for success AND failure
60-
hOutput = INVALID_HANDLE_VALUE;
61-
6259
if (!EndUpdateResource(hOut, FALSE))
6360
{
6461
hr = HRESULT_FROM_WIN32(GetLastError());

src/OrcLib/MFTUtils.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,21 @@ HRESULT MFTUtils::MultiSectorFixup(PFILE_RECORD_SEGMENT_HEADER pFRS, const std::
338338
//
339339
// get the first fixup entry
340340
//
341-
fixuparray = (WORD*)((BYTE*)pHeader + pHeader->UpdateSequenceArrayOffset) + 1;
342-
fixupsig = fixuparray[-1];
343341
dest = (BYTE*)pHeader + lBytesPerSector - 2;
344342
numfix = (WORD)(pVolReader->GetBytesPerFRS() / lBytesPerSector);
345343

344+
if (pHeader->UpdateSequenceArrayOffset + numfix * 2 > 510)
345+
{
346+
Log::Error("Update sequence array is out of bounds");
347+
return HRESULT_FROM_WIN32(ERROR_INVALID_DATA);
348+
}
349+
346350
//
347351
// go through the fixups
348352
//
353+
fixuparray = (WORD*)((BYTE*)pHeader + pHeader->UpdateSequenceArrayOffset) + 1;
354+
fixupsig = fixuparray[-1];
355+
349356
for (i = 0; i < numfix; i++)
350357
{
351358

src/OrcLib/Text/Print/FILE_NAME.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void Print(Tree& node, const FILE_NAME& file_name)
2525
const auto flags = file_name.Flags < fileFlags.size() ? fileFlags[file_name.Flags] : L"N/A";
2626

2727
PrintValue(node, L"Name", std::wstring_view(file_name.FileName, file_name.FileNameLength));
28-
PrintValue(node, L"Parent FRN", fmt::format("L{:#016x}", parentFRN));
28+
PrintValue(node, L"Parent FRN", fmt::format("{:#016x}", parentFRN));
2929
PrintValue(node, L"Creation", creation);
3030
PrintValue(node, L"Last modification", lastModification);
3131
PrintValue(node, L"Last access", lastAccess);

0 commit comments

Comments
 (0)