changeset 2578:09879415c666

Fixed a rare null-pointer dereference in Audacious-SID, discovered via zzuf.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 May 2008 07:22:53 +0300
parents 0db1da71c90c
children e623cf850e41
files src/sid/xs_stil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sid/xs_stil.c	Mon May 19 04:57:28 2008 +0300
+++ b/src/sid/xs_stil.c	Mon May 19 07:22:53 2008 +0300
@@ -228,7 +228,7 @@
                     if (subEntry < 1) {
                         XS_STILDB_ERR(lineNum, tmpLine,
                             "Number of subEntry (%i) for '%s' is invalid\n",
-                            subEntry, tmnode->filename);
+                            subEntry, tmnode ? tmnode->filename : "");
                         subEntry = 0;
                     }
                 } else {