mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
fix NULL deref
This commit is contained in:
parent
5856becc2b
commit
ce1a0d971b
1 changed files with 2 additions and 2 deletions
|
@ -1973,11 +1973,11 @@ static void exif_error_docref(const char *docref EXIFERR_DC, const image_info_ty
|
|||
char *buf;
|
||||
|
||||
spprintf(&buf, 0, "%s(%d): %s", _file, _line, format);
|
||||
php_verror(docref, ImageInfo->FileName?ImageInfo->FileName:"", type, buf, args);
|
||||
php_verror(docref, ImageInfo && ImageInfo->FileName ? ImageInfo->FileName:"", type, buf, args);
|
||||
efree(buf);
|
||||
}
|
||||
#else
|
||||
php_verror(docref, ImageInfo->FileName?ImageInfo->FileName:"", type, format, args);
|
||||
php_verror(docref, ImageInfo && ImageInfo->FileName ? ImageInfo->FileName:"", type, format, args);
|
||||
#endif
|
||||
va_end(args);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue