Menu ▾ ▴

#8 FreeImagePlus const correctness, fipMemoryIO copy bug

closed
None
5
2012-10-31
2006-05-08
Conrado PLG
No

This patch adds const correctness (I hope) to FIP, and
also makes the copy constructors of fipMemoryIO private
(since copying it could cause the handle to be deleted
twice thus corrupting the heap - took an hour or more
to find out that this was the culprit in a strange bug
in a project of mine :) )

If you don't like the const correctness it's OK but
please make those copy constructors private, it will
save someone's life someday!

Discussion

  • Conrado PLG

    Conrado PLG - 2006-05-08

    Patch

     
  • Hervé Drolon

    Hervé Drolon - 2006-05-23

    Logged In: YES
    user_id=613758

    Hi,
    Thanks for submitting this patch.
    It has just been added to the CVS and will thus be part of
    the next FreeImage release.

    Hervé Drolon
    FreeImage Project Manager

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Anonymous
Anonymous

Add attachments
Cancel