perftest icon indicating copy to clipboard operation
perftest copied to clipboard

Allocate correct size buffer

Open Sindhu-Devale opened this issue 5 years ago • 1 comments

In ctx_alloc_credit function in perftest_resources.c file, ctrl_buf is allocated a size of user_param->num_of_qps however it is being memset to a size of buf_size:

ALLOCATE(ctx->ctrl_buf,uint32_t,user_param->num_of_qps); memset(&ctx->ctrl_buf[0],0,buf_size);

Fix this by allocating the right size ctrl_buf:

ALLOCATE(ctx->ctrl_buf,uint32_t,buf_size);

Sindhu-Devale avatar Oct 31 '19 16:10 Sindhu-Devale

Hi Sindhu-Devale,

Thank you for collaboration! Please, send a corresponding PR.

dimasique1 avatar Nov 07 '19 14:11 dimasique1