vrend: remove superflous range check

This is now already checked before we decode the command.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago
parent 569ea169ba
commit 3f02922c7e
  1. 3
      src/vrend_decode.c

@ -404,9 +404,6 @@ static int vrend_decode_resource_inline_write(struct vrend_decode_ctx *ctx, cons
if (length < 12)
return EINVAL;
if (length + ctx->ds->buf_offset > ctx->ds->buf_total)
return EINVAL;
memset(&info, 0, sizeof(info));
info.box = &box;
vrend_decode_transfer_common(ctx, buf, &dst_handle, &info);

Loading…
Cancel
Save