Commit 0d4fd20a authored by Alexander Alekhin's avatar Alexander Alekhin

imgcodecs: add null pointer check

parent 32a02544
......@@ -396,6 +396,8 @@ static void ApplyExifOrientation(const Mat& buf, Mat& img)
static void*
imread_( const String& filename, int flags, int hdrtype, Mat* mat=0 )
{
CV_Assert(mat || hdrtype != LOAD_MAT); // mat is required in LOAD_MAT case
IplImage* image = 0;
CvMat *matrix = 0;
Mat temp, *data = &temp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment