octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55397] test imwrite error with address saniti


From: Rik
Subject: [Octave-bug-tracker] [bug #55397] test imwrite error with address sanitizer
Date: Fri, 18 Jan 2019 17:42:12 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #12, bug #55397 (project octave):

I think the problem may be the exception handling.  The code in
__magick_read__.cc is


void static
write_file (const std::string& filename,
            const std::string& ext,
            std::vector<Magick::Image>& imvec)
{
  try
    {
      Magick::writeImages (imvec.begin (), imvec.end (), ext + ':' +
filename);
    }
  catch (Magick::Warning& w)
    {
      warning ("Magick++ warning: %s", w.what ());
    }
  catch (Magick::ErrorCoder& e)
    {
      warning ("Magick++ coder error: %s", e.what ());
    }
  catch (Magick::Exception& e)
    {
      error ("Magick++ exception: %s", e.what ());
    }
}


@Dmitri: Could you try commenting out all of the catch blocks, re-compiling,
and then testing with


imwrite (1, "filename", "junk")




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55397>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]