- ERR("Attempt to create buffer view with invalid offset");
+ ERR("Attempt to create buffer view from another view with invalid offset (offset > source size): source size = %zu, offset in source = %zu, length = %zd",
+ src->size, offset, len);
goto end;
}
if (len != -1 && len > (src->size - offset)) {
goto end;
}
if (len != -1 && len > (src->size - offset)) {
- ERR("Attempt to create buffer view with invalid length");
+ ERR("Attempt to create buffer view from another view with invalid length (length > space left after offset in source): source size = %zu, offset in source = %zu, length = %zd",
- ERR("Attempt to create buffer view with invalid offset");
+ ERR("Attempt to create buffer view from a dynamic buffer with invalid offset (offset > source size): source size = %zu, offset in source = %zu, length = %zd",
+ src->size, offset, len);
goto end;
}
if (len != -1 && len > (src->size - offset)) {
goto end;
}
if (len != -1 && len > (src->size - offset)) {
- ERR("Attempt to create buffer view with invalid length");
+ ERR("Attempt to create buffer view from a dynamic buffer with invalid length (length > space left after offset in source): source size = %zu, offset in source = %zu, length = %zd",
+ src->size, offset, len);
goto end;
}
goto end;
}
This page took 0.024258 seconds and 4 git commands to generate.