mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
imgcodecs: add null pointer check
This commit is contained in:
parent
32a02544de
commit
0d4fd20a73
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user