mv_machine_learning: bug fix for invalid memory access
authorVibhav Aggarwal <v.aggarwal@samsung.com>
Wed, 22 Nov 2023 03:47:35 +0000 (12:47 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 6 Dec 2023 01:36:46 +0000 (10:36 +0900)
commitc0c5f731ec9f33ae4c7ae4d67d199a59ebcc8803
treeffdd337166dde57944d5d2066f95d84018982ec9
parent694ab55ee803110cb79db982553313f4aedcfd43
mv_machine_learning: bug fix for invalid memory access

[Issue type] bug fix

In the result() function of LandmarkDetection, ObjectDetection
and ObjectDetection3d task groups, the _result struct
was being cleared using memset to set all bytes to 0.
However, the structs include some vectors so this approach
of clearing the struct becomes invalid and resulted in
invalid memory access.

Change-Id: I98ed3e427e77b276145adbf461b3eaca44c752f6
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
mv_machine_learning/landmark_detection/include/landmark_detection_type.h
mv_machine_learning/landmark_detection/src/fld_tweak_cnn.cpp
mv_machine_learning/landmark_detection/src/pld_cpm.cpp
mv_machine_learning/object_detection/src/mobilenet_v1_ssd.cpp
mv_machine_learning/object_detection/src/mobilenet_v2_ssd.cpp
mv_machine_learning/object_detection_3d/src/objectron.cpp