Klocwork check null before dereference in acl_kernel_if by sherry-yuan · Pull Request #43 · intel/fpga-runtime-for-opencl (original) (raw)

@sherry-yuan self-assigned this

Dec 14, 2021

pcolberg

@sherry-yuan @pcolberg

Pointer 'kern->accel_csr' returned from call to function 'acl_malloc' at line 875 may be NULL and may be dereferenced at line 886.

@sherry-yuan @pcolberg

Pointer 'kern->accel_perf_mon' returned from call to function 'acl_malloc' at line 877 may be NULL and may be dereferenced at line 898.

@sherry-yuan @pcolberg

Pointer 'kern->accel_num_printfs' returned from call to function 'acl_malloc' at line 879 may be NULL and may be dereferenced at line 908.

@sherry-yuan @pcolberg

Pointer 'kern->accel_job_ids' returned from call to function 'acl_malloc' at line 947 may be NULL and will be dereferenced at line 962.

@sherry-yuan @pcolberg

…encing

Pointer 'kern->accel_invoc_queue_depth' returned from call to function 'acl_malloc' at line 949 may be NULL and will be dereferenced at line 961.

@sherry-yuan @pcolberg

Pointer 'kern->accel_queue_front' returned from call to function 'acl_malloc' at line 954 may be NULL and will be dereferenced at line 964

@sherry-yuan @pcolberg

Pointer 'kern->accel_queue_back' returned from call to function 'acl_malloc' at line 955 may be NULL and will be dereferenced at line 965

pcolberg

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})