🚑 fix for #405
This commit is contained in:
parent
8381cd6020
commit
871cebaf84
3 changed files with 19 additions and 0 deletions
|
@ -6871,6 +6871,12 @@ class basic_json
|
|||
{
|
||||
throw std::out_of_range("len+offset out of range");
|
||||
}
|
||||
|
||||
// last case: reading past the end of the vector
|
||||
if (len + offset > size)
|
||||
{
|
||||
throw std::out_of_range("len+offset out of range");
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -6871,6 +6871,12 @@ class basic_json
|
|||
{
|
||||
throw std::out_of_range("len+offset out of range");
|
||||
}
|
||||
|
||||
// last case: reading past the end of the vector
|
||||
if (len + offset > size)
|
||||
{
|
||||
throw std::out_of_range("len+offset out of range");
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue