The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/file: Only read matrix sizes that are with in reasonable limits

+5
+5
src/xrt/auxiliary/tracking/t_file.cpp
··· 743 743 return true; 744 744 } 745 745 746 + if (header[0] >= 32 || header[1] >= 32) { 747 + CALIB_ERROR("Matrix dimensions for '%s' is too large: '%ux%u'", name, header[0], header[1]); 748 + return false; 749 + } 750 + 746 751 //! @todo We may have written things other than CV_32F and CV_64F. 747 752 if (header[0] == 4) { 748 753 temp.create(static_cast<int>(header[1]), static_cast<int>(header[2]), CV_32F);