intel / node-realsense

MIT License
24 stars 21 forks source link

[checkmarx] Dangerous Functions #90

Open haoyunfeix opened 7 years ago

haoyunfeix commented 7 years ago

See 2 related issues in the report under the buffer overflow tag for details.

Code Snippet File Name /node-realsense-0.6.0/src/common/frame_dataassembler.h Method void SetData(rs::stream stream, int width, int height, rs::format format, .... `50. memcpy(data, data, size);`

Code Snippet File Name /node-realsense-0.6.0/src/person-tracking/maskinfo.cpp Method MaskInfo& MaskInfo::operator = (const MaskInfo& rhs) { .... `33. memcpy(maskData.data, rhs.maskData.data, maskData.size);`