| 184 | |
| 185 | |
| 186 | uint64_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 | |
| 195 | MachoView::MachoView(const string& typeName, BinaryView* data, bool parseOnly): BinaryView(typeName, data->GetFile(), data), |
no test coverage detected