diff options
author | Cosimo Cecchi <cosimoc@src.gnome.org> | 2007-11-07 05:20:11 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2007-11-07 05:20:11 +0800 |
commit | e7844f9c20776b5417d22ba9f119546dad526982 (patch) | |
tree | db8f2b1eec7df43e20d909bd98e256ad714a80b0 /src/ephy-session.c | |
parent | 89a162f0b69c856e31d12350e1eb59935fd8e7ef (diff) | |
download | gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.tar gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.tar.gz gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.tar.bz2 gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.tar.lz gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.tar.xz gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.tar.zst gsoc2013-epiphany-e7844f9c20776b5417d22ba9f119546dad526982.zip |
Adds a NULL check to avoid passing illegal values to strtol in ephy-session.
Patch by Ed Catmur. Fix bug #493148.
svn path=/trunk/; revision=7644
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r-- | src/ephy-session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index 537df50ea..811cd1e6d 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -1367,6 +1367,8 @@ int_from_string (const char *string, long int val; gboolean success = FALSE; + if (string == NULL) return FALSE; + errno = 0; val = strtol (string, &tail, 0); |