when compiling with -Werror and -Warray-bounds:
req.c: In function ‘_launch_complete_rm’: req.c:5372: error: array subscript is above array bounds req.c: In function ‘_launch_complete_add’: req.c:5328: error: array subscript is above array bounds The lines are if (job_id != active_job_id[j]) { after the for loops in those functions. If no match is found in the loop, j will be JOB_STATE_CNT and overflow the array by one.
Loading
Please register or sign in to comment