mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
Merge pull request #10444 from alalek:fix_asan_imgcodecs
This commit is contained in:
commit
ec32022bdf
@ -228,12 +228,12 @@ bool PngDecoder::readData( Mat& img )
|
|||||||
uchar** buffer = _buffer;
|
uchar** buffer = _buffer;
|
||||||
int color = img.channels() > 1;
|
int color = img.channels() > 1;
|
||||||
|
|
||||||
|
png_structp png_ptr = (png_structp)m_png_ptr;
|
||||||
|
png_infop info_ptr = (png_infop)m_info_ptr;
|
||||||
|
png_infop end_info = (png_infop)m_end_info;
|
||||||
|
|
||||||
if( m_png_ptr && m_info_ptr && m_end_info && m_width && m_height )
|
if( m_png_ptr && m_info_ptr && m_end_info && m_width && m_height )
|
||||||
{
|
{
|
||||||
png_structp png_ptr = (png_structp)m_png_ptr;
|
|
||||||
png_infop info_ptr = (png_infop)m_info_ptr;
|
|
||||||
png_infop end_info = (png_infop)m_end_info;
|
|
||||||
|
|
||||||
if( setjmp( png_jmpbuf ( png_ptr ) ) == 0 )
|
if( setjmp( png_jmpbuf ( png_ptr ) ) == 0 )
|
||||||
{
|
{
|
||||||
int y;
|
int y;
|
||||||
|
Loading…
Reference in New Issue
Block a user