File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 44
44
// will require rebuilding. The minimum version is increased when there are
45
45
// incompatible changes that break binary compatibility, such as changes to
46
46
// existing types or functions.
47
- #define BN_MINIMUM_CORE_ABI_VERSION 59
47
+ #define BN_MINIMUM_CORE_ABI_VERSION 60
48
48
49
49
#ifdef __GNUC__
50
50
#ifdef BINARYNINJACORE_LIBRARY
@@ -3918,6 +3918,7 @@ extern "C"
3918
3918
BINARYNINJACOREAPI bool BNReadBE16 (BNBinaryReader* stream, uint16_t * result);
3919
3919
BINARYNINJACOREAPI bool BNReadBE32 (BNBinaryReader* stream, uint32_t * result);
3920
3920
BINARYNINJACOREAPI bool BNReadBE64 (BNBinaryReader* stream, uint64_t * result);
3921
+ BINARYNINJACOREAPI bool BNReadPointer (BNBinaryView* view, BNBinaryReader* stream, uint64_t * result);
3921
3922
3922
3923
BINARYNINJACOREAPI uint64_t BNGetReaderPosition (BNBinaryReader* stream);
3923
3924
BINARYNINJACOREAPI void BNSeekBinaryReader (BNBinaryReader* stream, uint64_t offset);
Original file line number Diff line number Diff line change @@ -314,14 +314,7 @@ bool BinaryReader::TryRead64(uint64_t& result)
314
314
315
315
bool BinaryReader::TryReadPointer (uint64_t & result)
316
316
{
317
- size_t addressSize = m_view->GetAddressSize ();
318
- if (addressSize > 8 || addressSize == 0 )
319
- return false ;
320
-
321
- if (GetEndianness () == BigEndian)
322
- return TryReadBEPointer (result);
323
-
324
- return TryReadLEPointer (result);
317
+ return BNReadPointer (m_view->GetObject (), m_stream, &result);
325
318
}
326
319
327
320
You can’t perform that action at this time.
0 commit comments