We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66ebd9 commit 96d0e5fCopy full SHA for 96d0e5f
src/types.cpp
@@ -176,7 +176,7 @@ const byte* Exiv2::DataBuf::c_data(size_t offset) const {
176
if (pData_.empty()) {
177
return nullptr;
178
}
179
- if (offset >= pData_.size()) {
+ if (offset > pData_.size()) {
180
throw std::out_of_range("Overflow in Exiv2::DataBuf::c_data");
181
182
return &pData_[offset];
0 commit comments