intel / node-realsense

MIT License
24 stars 21 forks source link

[checkmarx] Buffer Overflow AddressOfLocalVarReturned - in common folder. #88

Open haoyunfeix opened 7 years ago

haoyunfeix commented 7 years ago

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

Code Snippet File Name /node-realsense-0.6.0/src/common/image.cpp Method void Image::Assign(Image* img) { PAGE 15 OF 226 .... 39. memset(img, 0, sizeof(Image));

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);`