CMakeLists.txt 中设置warnings as errors,可以发现内存越界问题
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") #treating warnings as errors
char tmpstr[30]; frameId++; sprintf(tmpstr, "/data1/XXXXXXXXX/tmp/detect_%d.jpg", frameId);
报如下错误 /opt/intel/openvino/deployment_tools/open_model_zoo/demos/object_detection_demo_yolov3_async/main.cpp:180:5: error: '%d' directive writing between 1 and 10 bytes into a region of size 3 [-Werror=format-overflow=]