]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tidl/tidl-api.git/commitdiff
Initialize EO::current_frame_idx_m in constructor
authorAjay Jayaraj <ajayj@ti.com>
Thu, 15 Nov 2018 16:50:37 +0000 (10:50 -0600)
committerAjay Jayaraj <ajayj@ti.com>
Thu, 15 Nov 2018 16:50:37 +0000 (10:50 -0600)
Initialize ExecutionObject::current_frame_idx_m array to 0 in the
ExecutionObject constructor to prevent out of range entries when
recording trace data.

In a pipelined processing loop, the application executes
ExecutionObject::ProcessFrameWait() on the first frame before it calls
ExecutionObject::ProcessFrameStartAsync. The side effect is that the
current_frame_idx_m is not initialized. This can result in negative
frame indices when writing trace data using ReportTrace or UpdateTrace
leading to memory errors.

Setting ExecutionObject::current_frame_idx_m to 0 in the constructor
avoids this scenario.

(MCT-1085)


No differences found