DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2625
Version: 1.3-current


Fl_PNG_Image doesn't test fro the results of memory allocation in several
points and could return without freeing resources:

----
  // Setup the PNG data structures...
  pp   = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
  info = png_create_info_struct(pp);
///////the above should be tested
  if (setjmp(png_jmpbuf(pp)))
  {
//////if this is reached there is (pp, info) structures that need be
freed.
    Fl::warning("PNG file \"%s\" contains errors!\n", name_png);
    return;
  }
---


Link: http://www.fltk.org/str.php?L2625
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to