| 190 | |
| 191 | |
| 192 | uint64_t readValidULEB128(DataBuffer& buffer, size_t& cursor) |
| 193 | { |
| 194 | uint64_t value = readLEB128(buffer, buffer.GetLength(), cursor); |
| 195 | if ((int64_t)value == -1) |
| 196 | throw ReadException(); |
| 197 | return value; |
| 198 | } |
| 199 | |
| 200 | } // namespace |
| 201 |
no test coverage detected