On 13 February 2014 00:01, <marti.ma...@littlecms.com> wrote: > if something does not work, let us know
Another regression: //gcc -o test test.c `pkg-config --cflags --libs lcms2` && ./test #include <lcms2.h> #include <stdlib.h> #include <assert.h> int main(int argc, char *argv[]) { cmsHPROFILE p; cmsMLU *mlu; int ret; p = cmsCreate_sRGBProfileTHR(NULL); /* set value */ mlu = cmsMLUalloc (NULL, 1); ret = cmsMLUsetASCII (mlu, "en", "US", "bar"); assert (ret); ret = cmsWriteTag (p, cmsSigDeviceMfgDescTag, mlu); assert (ret); cmsMLUfree (mlu); /* remove the tag -- NOTE: this fails, it probably should succeed */ ret = cmsWriteTag (p, cmsSigDeviceMfgDescTag, NULL); //assert (ret); /* THIS EXPLODES */ cmsCloseProfile(p); return 0; } Using 2.5 I get a profile without a cmsSigDeviceMfgDescTag, using 2.6 I get: double free or corruption; bt looks like this: #2 0x00007ffff7839d04 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff7940528 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175 #3 0x00007ffff7840ff8 in malloc_printerr (ptr=<optimized out>, str=0x7ffff7940600 "double free or corruption (!prev)", action=3) at malloc.c:4930 #4 _int_free (av=0x7ffff7b7c760 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3782 #5 0x00007ffff7bad72a in cmsMLUfree (mlu=0x605100) at cmsnamed.c:285 #6 0x00007ffff7b9ae43 in cmsCloseProfile (hProfile=0x6041b0) at cmsio0.c:1393 #7 0x0000000000400965 in main () Note. If I'm not supposed to use cmsWriteTag(NULL) to remove a tag, then I need some other way to do this. And if cmsWriteTag() is supposed to fail, it should probably not make the cmsCloseProfile() explode... Richard. ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user