[Piglit] [PATCH] arb_sparse_buffer: Fix Coverity unintentional integer overflow defect.
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri May 19 00:36:14 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 05/19/2017 12:32 AM, Vinson Lee wrote:
> CID: 1405992
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> tests/spec/arb_sparse_buffer/buffer-data.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/arb_sparse_buffer/buffer-data.c b/tests/spec/arb_sparse_buffer/buffer-data.c
> index 31ece6fcd38a..b4cc6e5c6bb1 100644
> --- a/tests/spec/arb_sparse_buffer/buffer-data.c
> +++ b/tests/spec/arb_sparse_buffer/buffer-data.c
> @@ -481,7 +481,7 @@ run_stress(unsigned num_iterations)
> unsigned log_num_pages = 10;
> bool pass = true;
>
> - buf = create_buffers((1 << log_num_pages) * sparse_buffer_page_size);
> + buf = create_buffers((1ull << log_num_pages) * sparse_buffer_page_size);
>
> /* Initialize a fairly dense random commitment. */
> for (unsigned page = 0; page < (1 << log_num_pages);) {
>
More information about the Piglit
mailing list