mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
pngenc: Call png_error() instead of using longjmp() directly.
Fixes #612700
This commit is contained in:
parent
6798e80424
commit
0ce782383f
1 changed files with 1 additions and 2 deletions
|
@ -224,8 +224,7 @@ user_write_data (png_structp png_ptr, png_bytep data, png_uint_32 length)
|
|||
|
||||
if (pngenc->written + length >= GST_BUFFER_SIZE (pngenc->buffer_out)) {
|
||||
GST_ERROR_OBJECT (pngenc, "output buffer bigger than the input buffer!?");
|
||||
/* yuck */
|
||||
longjmp (pngenc->png_struct_ptr->jmpbuf, 1);
|
||||
png_error (png_ptr, "output buffer bigger than the input buffer!?");
|
||||
|
||||
/* never reached */
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue