Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
deps: update ChakraCore to chakra-core/ChakraCore@9d70c00ad7
Browse files Browse the repository at this point in the history
[1.8>1.9] [MERGE #4621 @leirocks] fix for wrong signed/unsigned convertion with RtlAddGrowableFunctionTable return value

Merge pull request #4621 from leirocks:xdata2

Reviewed-By: chakrabot <[email protected]>
  • Loading branch information
leirocks authored and kfarnung committed Feb 1, 2018
1 parent 39ea00c commit 8701f4d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deps/chakrashim/core/lib/Backend/PDataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void PDataManager::RegisterPdata(RUNTIME_FUNCTION* pdataStart, _In_ const ULONG_

// Since we do not expect many thunk functions to be created, we are using 1 table/function
// for now. This can be optimized further if needed.
DWORD status = NtdllLibrary::Instance->AddGrowableFunctionTable(pdataTable,
NTSTATUS status = NtdllLibrary::Instance->AddGrowableFunctionTable(pdataTable,
pdataStart,
entryCount,
maxEntryCount,
Expand Down
4 changes: 2 additions & 2 deletions deps/chakrashim/core/lib/Common/Core/DelayLoadLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ LPCTSTR NtdllLibrary::GetLibraryName() const
#if PDATA_ENABLED

_Success_(return == 0)
DWORD NtdllLibrary::AddGrowableFunctionTable( _Out_ PVOID * DynamicTable,
NtdllLibrary::NTSTATUS NtdllLibrary::AddGrowableFunctionTable( _Out_ PVOID * DynamicTable,
_In_reads_(MaximumEntryCount) PRUNTIME_FUNCTION FunctionTable,
_In_ DWORD EntryCount,
_In_ DWORD MaximumEntryCount,
Expand All @@ -82,7 +82,7 @@ DWORD NtdllLibrary::AddGrowableFunctionTable( _Out_ PVOID * DynamicTable,
return 1;
}
}
DWORD status = addGrowableFunctionTable(DynamicTable,
NTSTATUS status = addGrowableFunctionTable(DynamicTable,
FunctionTable,
EntryCount,
MaximumEntryCount,
Expand Down
2 changes: 1 addition & 1 deletion deps/chakrashim/core/lib/Common/Core/DelayLoadLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class NtdllLibrary : protected DelayLoadLibrary

#if PDATA_ENABLED
_Success_(return == 0)
DWORD AddGrowableFunctionTable(_Out_ PVOID * DynamicTable,
NTSTATUS AddGrowableFunctionTable(_Out_ PVOID * DynamicTable,
_In_reads_(MaximumEntryCount) PRUNTIME_FUNCTION FunctionTable,
_In_ DWORD EntryCount,
_In_ DWORD MaximumEntryCount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void XDataAllocator::Register(XDataAllocation * xdataInfo, ULONG_PTR functionSta
Assert(runtimeFunction == NULL);
#endif

DWORD status = NtdllLibrary::Instance->AddGrowableFunctionTable(&xdataInfo->functionTable,
NTSTATUS status = NtdllLibrary::Instance->AddGrowableFunctionTable(&xdataInfo->functionTable,
&xdataInfo->pdata,
/*MaxEntryCount*/ 1,
/*Valid entry count*/ 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void XDataAllocator::Register(XDataAllocation * xdataInfo, DWORD functionStart,

// Since we do not expect many thunk functions to be created, we are using 1 table/function
// for now. This can be optimized further if needed.
DWORD status = NtdllLibrary::Instance->AddGrowableFunctionTable(&xdataInfo->functionTable,
NTSTATUS status = NtdllLibrary::Instance->AddGrowableFunctionTable(&xdataInfo->functionTable,
pdataArray,
/*MaxEntryCount*/ xdataInfo->pdataCount,
/*Valid entry count*/ xdataInfo->pdataCount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void XDataAllocator::Register(XDataAllocation * xdataInfo, ULONG_PTR functionSta
xdataInfo->pdata.BeginAddress = (DWORD)(functionStart - baseAddress);
xdataInfo->pdata.UnwindData = (DWORD)((intptr_t)xdataInfo->address - baseAddress);

DWORD status = NtdllLibrary::Instance->AddGrowableFunctionTable(&xdataInfo->functionTable,
NTSTATUS status = NtdllLibrary::Instance->AddGrowableFunctionTable(&xdataInfo->functionTable,
&xdataInfo->pdata,
/*MaxEntryCount*/ 1,
/*Valid entry count*/ 1,
Expand Down

0 comments on commit 8701f4d

Please sign in to comment.