mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
Don't access invalid memory address if p wasn't increased. (#159557,
2004-11-26 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't access invalid memory address if p wasn't increased. (#159557, Frederic Crozat)
This commit is contained in:
parent
6b69bf8866
commit
40b4e103b4
@ -1,3 +1,9 @@
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_parse_value_as_string):
|
||||
Don't access invalid memory address if p wasn't
|
||||
increased. (#159557, Frederic Crozat)
|
||||
|
||||
2004-11-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/strtod-test.c (main): Add a testcase for the previous fix.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_parse_value_as_string):
|
||||
Don't access invalid memory address if p wasn't
|
||||
increased. (#159557, Frederic Crozat)
|
||||
|
||||
2004-11-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/strtod-test.c (main): Add a testcase for the previous fix.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_parse_value_as_string):
|
||||
Don't access invalid memory address if p wasn't
|
||||
increased. (#159557, Frederic Crozat)
|
||||
|
||||
2004-11-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/strtod-test.c (main): Add a testcase for the previous fix.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_parse_value_as_string):
|
||||
Don't access invalid memory address if p wasn't
|
||||
increased. (#159557, Frederic Crozat)
|
||||
|
||||
2004-11-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/strtod-test.c (main): Add a testcase for the previous fix.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_parse_value_as_string):
|
||||
Don't access invalid memory address if p wasn't
|
||||
increased. (#159557, Frederic Crozat)
|
||||
|
||||
2004-11-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/strtod-test.c (main): Add a testcase for the previous fix.
|
||||
|
@ -3041,7 +3041,7 @@ g_key_file_parse_value_as_string (GKeyFile *key_file,
|
||||
p++;
|
||||
}
|
||||
|
||||
if (p[-1] == '\\' && error == NULL)
|
||||
if (p > value && p[-1] == '\\' && error == NULL)
|
||||
g_set_error (error, G_KEY_FILE_ERROR,
|
||||
G_KEY_FILE_ERROR_INVALID_VALUE,
|
||||
_("Key file contains escape character at end of line"));
|
||||
|
Loading…
Reference in New Issue
Block a user