Commit Graph

3431 Commits

Author SHA1 Message Date
Matthias Clasen
2ad1af5b1e Avoid integer overflows in the base64 functions. Fixes CVE-2008-4316
2009-03-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Avoid integer overflows in the base64
        functions. Fixes CVE-2008-4316


svn path=/trunk/; revision=7973
2009-03-12 13:30:55 +00:00
Stefan Walter
a4d3d1f3c8 Document and guarantee hex digests will be returned in lower case.
See bug #574019

svn path=/trunk/; revision=7971
2009-03-11 15:47:36 +00:00
Matthias Clasen
7707cf78b1 Bump version
svn path=/trunk/; revision=7944
2009-03-02 06:49:25 +00:00
Matthias Clasen
a902f5257c 2.19.10
svn path=/trunk/; revision=7942
2009-03-02 06:36:08 +00:00
Matthias Clasen
d1e4cc4ec0 Bump version
svn path=/trunk/; revision=7941
2009-03-02 05:52:09 +00:00
Matthias Clasen
3f07ef2119 2.19.9
svn path=/trunk/; revision=7939
2009-03-02 05:49:44 +00:00
Matthias Clasen
e2b962933b Updates
svn path=/trunk/; revision=7938
2009-03-02 05:07:37 +00:00
Matthias Clasen
bd02a9f778 Fix docs
svn path=/trunk/; revision=7933
2009-03-01 17:00:21 +00:00
Matthias Clasen
84fdf0d00e Fix distcheck
svn path=/trunk/; revision=7932
2009-03-01 16:46:45 +00:00
Tor Lillqvist
56f54c0ebc Bug 167569 - g_string_append_printf crashes on win32 when used with a NULL
2009-02-27  Tor Lillqvist  <tml@novell.com>

	Bug 167569 - g_string_append_printf crashes on win32 when used
	with a NULL argument

	* glib/gnulib/vasnprintf.c (vasnprintf): Add workaround for buggy
	programs. Patch by Owen.


svn path=/trunk/; revision=7917
2009-02-27 07:46:32 +00:00
Paolo Borelli
e1b7a25342 sanity check the input paramter.
2009-02-23  Paolo Borelli  <pborelli@katamail.com>

	* glib/gutf8.c (_g_utf8_make_valid):
	sanity check the input paramter. 

svn path=/trunk/; revision=7902
2009-02-23 14:38:20 +00:00
Tor Lillqvist
739a81e08a Bug 570501 - g_win32_get_system_data_dirs uses invalid conversion of
2009-02-23  Tor Lillqvist  <tml@novell.com>

	Bug 570501 - g_win32_get_system_data_dirs uses invalid conversion
	of function pointer to object pointer

	* glib/gutils.c (g_win32_get_system_data_dirs_for_module): Change
	the type of the function's parameter to be explicitly a function
	pointer.

	* glib/gutils.h (_g_win32_get_system_data_dirs): Modify
	declaration and the only caller, the inline
	_g_win32_get_system_data_dirs(), accordingly. Add comments
	pointing out these are internal GLib functions.


svn path=/trunk/; revision=7899
2009-02-23 09:52:48 +00:00
Matthias Clasen
f548330275 Fix "it's" vs "its" confusion throughout the source. Patch by Will
* Fix "it's" vs "its" confusion throughout the source. Patch
        by Will Thompson.


svn path=/trunk/; revision=7897
2009-02-23 04:30:06 +00:00
Matthias Clasen
8ad668c7f0 Improve docs
svn path=/trunk/; revision=7896
2009-02-23 04:23:14 +00:00
Matthias Clasen
45fdc135b2 Add a necessary cast back. Pointed out by Kazuki Iwamoto.
* glib/gthread.c (g_once_init_leave): Add a necessary cast back.
        Pointed out by Kazuki Iwamoto.


svn path=/trunk/; revision=7895
2009-02-23 04:07:58 +00:00
Matthias Clasen
6438f1689c Bump version
svn path=/trunk/; revision=7878
2009-02-17 18:48:26 +00:00
Matthias Clasen
4611dadadd 2.19.8
svn path=/trunk/; revision=7876
2009-02-17 18:36:36 +00:00
Matthias Clasen
c8e37b63e7 Fix strict aliasing warnings and viiolations to make GLib and
GLib users buildable with gcc 4.4. Patch by Jakub Jelinek.

        * glib/gatomic.[hc]: Add G_GNUC_MAY_ALIAS to pointer arguments,
        fix macro versions to only operate on objects of the same size.

        * glib/gdataset.c:
        * glib/gthread.[hc]:
        * glib/gdatasetprivate.h: Remove unnecessary casts in
        g_atomic_pointer_get calls.


svn path=/trunk/; revision=7875
2009-02-17 16:14:39 +00:00
Matthias Clasen
cf3c12cb6d Bump version
svn path=/trunk/; revision=7870
2009-02-17 02:51:46 +00:00
Matthias Clasen
7b106d2066 2.19.7
svn path=/trunk/; revision=7868
2009-02-17 02:49:52 +00:00
Matthias Clasen
23aad87a54 Updates
svn path=/trunk/; revision=7867
2009-02-17 01:35:09 +00:00
Mathias Hasselmann
cf01757ba0 Add note about g_utf8_offset_to_pointer() not checking string
boundaries.

* glib/gutf8.c (g_utf8_offset_to_pointer()): See summary.

svn path=/trunk/; revision=7861
2009-02-13 14:20:17 +00:00
Matthias Clasen
82e1d3e753 Bug 523742 – Use noinst for non-installable libraries
* tests/Makefile.am: use noninst_LTLIBRARIES for noninstalled
        libraries.Patch by Björn Lindqvist


svn path=/trunk/; revision=7860
2009-02-12 03:55:38 +00:00
Murray Cumming
a431c976af Correct the grammar in some property documentation.
2009-02-06  Murray Cumming  <murrayc@murrayc.com>

* gio/gfilterinputstream.c:
* gio/gfilteroutputstream.c: Correct the grammar in some property 
documentation.
* gio/gdatainputstream.c:
* glib/gregex.c: Correct the spelling of 
occurrence in documentation.

svn path=/trunk/; revision=7856
2009-02-06 14:08:19 +00:00
Matthias Clasen
e194c48373 bump version
svn path=/trunk/; revision=7847
2009-02-02 21:42:11 +00:00
Matthias Clasen
afa157a73d 2.19.6
svn path=/trunk/; revision=7845
2009-02-02 20:09:08 +00:00
Matthias Clasen
a9243ac8f6 Bump version
svn path=/trunk/; revision=7844
2009-02-02 19:19:53 +00:00
Matthias Clasen
66107b3d4d Updates
svn path=/trunk/; revision=7843
2009-02-02 15:40:16 +00:00
Matthias Clasen
e4f6ecbda6 i * glib/gtimer.c (g_time_val_to_iso8601): Pass a time_t* to gmtime().
Pointed out by Matthias Drochner.


svn path=/trunk/; revision=7840
2009-01-31 19:19:21 +00:00
Christian Persch
17b9b43a7a Add G_GOFFSET_FORMAT and friends. Bug #563141.
* configure.in:
	* docs/reference/glib/glib-sections.txt:
	* docs/reference/macros_misc.sgml:
	* docs/reference/glib/tmpl/types.sgml: Add
	G_GOFFSET_FORMAT and friends. Bug #563141.

svn path=/trunk/; revision=7834
2009-01-28 14:09:18 +00:00
Stefan Kost
0b3588bc12 Add SCAN_OPTIONS=--ignore-decorators="GLIB_VAR" to Makefile.am to fix on
* docs/reference/glib/Makefile.am:
	  Add SCAN_OPTIONS=--ignore-decorators="GLIB_VAR" to Makefile.am to fix
	  on problem with the doc build.


svn path=/trunk/; revision=7829
2009-01-23 15:10:31 +00:00
Tor Lillqvist
98d2cdd9e6 Drop the code in the else branch of #if GLIB_CHECK_VERSION (2, 19, 0).
2009-01-21  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_locale_filename_from_utf8): Drop the code
	in the else branch of #if GLIB_CHECK_VERSION (2, 19, 0). Drop
	unused variables.


svn path=/trunk/; revision=7826
2009-01-21 16:18:39 +00:00
Matthias Clasen
a5156974cc fix a typo
svn path=/trunk/; revision=7823
2009-01-20 17:05:26 +00:00
Matthias Clasen
af6a048743 2.19.5
svn path=/trunk/; revision=7820
2009-01-19 07:46:43 +00:00
Matthias Clasen
b71046b70f Fix a typo
svn path=/trunk/; revision=7818
2009-01-19 07:01:57 +00:00
Matthias Clasen
8e3622114b Updates
svn path=/trunk/; revision=7816
2009-01-18 07:33:37 +00:00
Matthias Clasen
a5fd60a8ac Define an ENABLE_REGEX macro
* configure.in: Define an ENABLE_REGEX macro

        * gobject/gboxed.c: Don't refer to g_regex_ref if ENABLE_REGEX
        is not defined.


svn path=/trunk/; revision=7815
2009-01-18 06:53:44 +00:00
Matthias Clasen
a55229a520 Quell some compiler wanrings
svn path=/trunk/; revision=7814
2009-01-18 06:44:04 +00:00
Matthias Clasen
d6f23279e7 Update PCRE to 7.8
svn path=/trunk/; revision=7813
2009-01-18 06:32:03 +00:00
Matthias Clasen
1da8112081 If !ENABLE_NLS, make textomain() macro return "messages" in case of a NULL
* glib/glibintl.h: If !ENABLE_NLS, make textomain() macro
        return "messages" in case of a NULL argument. Patch by
        Peter Kjellerstedt.


svn path=/trunk/; revision=7812
2009-01-18 01:08:17 +00:00
Matthias Clasen
ed6c7f0e32 Use offsetof instead of __builtin_offsetof, for icc's sake. Proposed by
* glib/gmacros.h (G_STRUCT_OFFSETOF): Use offsetof instead of
        __builtin_offsetof, for icc's sake. Proposed by Hrvoje Niksic.



svn path=/trunk/; revision=7811
2009-01-18 01:03:00 +00:00
Matthias Clasen
c8dd07333a Bug 564728 Add function to decode base64 encoded data in place
2009-01-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 564728 Add function to decode base64 encoded data in place

        * glib/glib.symbols:
        * glib/gbase64.[hc] (g_base64_decode_inplace): New convenience
        API to decode in place, overwriting the input string. Patch by
        Sebastian Dröge.


svn path=/trunk/; revision=7807
2009-01-13 19:59:32 +00:00
Matthias Clasen
cc1dc5ce20 Improve docs
svn path=/trunk/; revision=7805
2009-01-13 02:24:46 +00:00
Tor Lillqvist
ed2e6c0814 Guard against a mis-written GOptionArgFunc that has returned FALSE but not
2009-01-12  Tor Lillqvist  <tml@novell.com>

	* glib/goption.c (parse_arg): Guard against a mis-written
	GOptionArgFunc that has returned FALSE but not set the GError.


svn path=/trunk/; revision=7804
2009-01-12 11:45:52 +00:00
Matthias Clasen
c5e6e11d8e Improve docs
svn path=/trunk/; revision=7802
2009-01-11 04:58:25 +00:00
Matthias Clasen
38202496e7 Docs improvement
svn path=/trunk/; revision=7801
2009-01-11 04:53:34 +00:00
Tor Lillqvist
eeb4d5939d Bug 567138 - get_package_directory_from_module() does not free its lock
2009-01-09  Tor Lillqvist  <tml@iki.fi>

	Bug 567138 - get_package_directory_from_module() does not free its
	lock when failing

	* glib/gwin32.c (get_package_directory_from_module): Obvious fix.


svn path=/trunk/; revision=7794
2009-01-09 10:37:31 +00:00
Matthias Clasen
84cca3b58d Bump version
svn path=/trunk/; revision=7779
2009-01-05 18:08:25 +00:00
Matthias Clasen
85fa6de695 2.19.4
svn path=/trunk/; revision=7777
2009-01-05 18:06:05 +00:00
Matthias Clasen
90408a37fa Updates
svn path=/trunk/; revision=7776
2009-01-05 16:58:09 +00:00