2006-05-15 Matthias Clasen * === Released 2.11.1 === * NEWS: Updates 2006-05-13 Matthias Clasen * glib/grel.c: Fix several cases of deref-before-NULL-check. (#341191, Pascal Terjan) * glib/glib.symbols: * glib/goption.h: * glib/goption.c: Allow optional summary and description texts before and after the option descriptions, and add a way to translate them. (#336120, Behdad Esfahbod) 2006-05-12 Tor Lillqvist * glib/giowin32.c (g_io_win32_sock_set_flags): Implement setting/clearing G_IO_FLAG_NONBLOCK for channels attached to sockets. (#341192) (g_io_win32_unimpl_set_flags): set_flags method for the unimplemented case. 2006-05-11 Bastien Nocera * glib/goption.c: (parse_int64), (parse_arg), (free_changes_list): * glib/goption.h: * tests/option-test.c: (arg_test6), (main): add an int64 type for GOption (G_OPTION_ARG_INT64) (#341237) 2006-05-10 Sebastian Wilhelmi * glib/gthread.h, gthread/gthread-impl.c: Make the magic and location arguments to the error-checking-mutex functions const and do not write to them, as we might not own them. Clean up the error-checking-mutex code quite a bit. (#335198, Chris Wilson) * glib/gthread.c: Use g_atomic_pointer_set instead of old homegrown version now that we have it. (#335198, Chris Wilson) * gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent calling into g_cond_wait resp. g_mutex_lock/unlock directly to avoid recursions into the errorcheking mutex code (and out of principle anyway). (#335198, Chris Wilson) * tests/errorcheck-mutex-test.c: Adapt to GLib coding standards. 2006-05-09 Sebastian Wilhelmi * glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved system thread identifier comparision and assignment macros from glib/gthread.c to glib/gthreadprivate.h. * glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c, glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c, glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use glib/gthreadprivate.h instead of glib/gthreadinit.h. * gthread/gthread-impl.c: Use GSystemThread instead of GThread for owner determination. (#311043, jylefort@FreeBSD.org) * tests/Makefile.am, tests/errorcheck-mutex-test: New test program to test for all checked violations. * glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c, gthread/gthread-impl.c, gthread/gthread-posix.c, gthread/gthread-win32.c: Use canonical include form for internal headers. config.h is always there. * Remove obsolete gthread/gthread-solaris.c. 2006-05-08 Matthias Clasen * tests/convert-test.c (test_one_half): Use encoding names which may work better on Solaris. (#340434, Alessandro Vesely) * tests/keyfile-test.c (test_number): Add some tests for invalid floating point numbers. * glib/gkeyfile.c (g_key_file_parse_value_as_double): Return an error for the empty string. (#339105, Morten Welinder) * glib/gscanner.c (g_scanner_config_template): Make const, noticed by Kjartan Maraas. 2006-05-06 Matthias Clasen * glib/gkeyfile.c (g_key_file_set_string_list) (g_key_file_set_locale_string_list): Fix invalid memory reads. (#340816, Nick Treleaven) 2006-05-04 Alexander Larsson * glib/gbase64.c: (g_base64_decode_step): Fix OOB write (#340538) 2006-05-03 Matthias Clasen * tests/base64-test.c: Add some more tests. * glib/gbase64.c (g_base64_decode_step): Avoid writing beyond the guaranteed lenght of the output buffer, if there is padding. * tests/base64-test.c (test_incremental): Use malloced memory instead of stack-allocated, so that MALLOC_CHECK_=2 catches the OOB write... * glib/gbookmarkfile.c (g_bookmark_file_load_from_data): Remove an overzealous return_if_fail check that causes make check to fail.