intel / node-realsense

MIT License
24 stars 21 forks source link

[checkmarx] Use of Uninitialized Variable -- size_ in /v0.6.0/src/common/frame_data_assembler.h #87

Open haoyunfeix opened 7 years ago

haoyunfeix commented 7 years ago

See issue-3& issue-4 & issue-5 in the report for details.

Code Snippet File Name /node-realsense-0.6.0/src/common/frame_data_assembler.h Method int32t size; .... 99. int32_t size_; File Name /node-realsense-0.6.0/src/common/frame_dataassembler.h Method Image* ToImage() { .... `79. ArrayBuffer buf = {data, size_};`

Code Snippet File Name /node-realsense-0.6.0/src/common/frame_data_assembler.h Method int32t size; .... 145. int32_t size_; File Name /node-realsense-0.6.0/src/common/frame_data_assembler.h Method void SetData(rs::event motionType, uint64_t framenumber, .... `116. for (int i = 0; i < size; i++) {`


Code Snippet File Name /node-realsense-0.6.0/src/common/frame_data_assembler.h Method int32t size; .... 145. int32_t size_; File Name /node-realsense-0.6.0/src/common/frame_data_assembler.h Method void SetData(const rs::core::motionsample& sample) { PAGE 10 OF 226 .... `125. for (int i = 0; i < size; i++) {`