MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / readValidULEB128

Function readValidULEB128

view/macho/machoview.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185
186uint64_t readValidULEB128(DataBuffer& buffer, size_t& cursor)
187{
188 uint64_t value = readLEB128(buffer, buffer.GetLength(), cursor);
189 if ((int64_t)value == -1)
190 throw ReadException();
191 return value;
192}
193
194
195MachoView::MachoView(const string& typeName, BinaryView* data, bool parseOnly): BinaryView(typeName, data->GetFile(), data),

Callers 1

ParseExportTrieMethod · 0.70

Calls 3

ReadExceptionClass · 0.85
readLEB128Function · 0.70
GetLengthMethod · 0.45

Tested by

no test coverage detected