found 715667 1.1.1+rev1500-1
stop


Hello,
azap crashes because of a strlen(0) because homedir/$HOME is not set.

Minimal statement to reproduce:
        $ env -i azap 1

Following patch exits immediately after the
message, therefore avoids the crash.

Kind regards,
Bernhard



--- azap.c.orig 2015-05-06 20:57:36.310093306 +0200
+++ azap.c      2015-05-06 21:03:12.507780772 +0200
@@ -327,8 +327,10 @@ int main(int argc, char **argv)
 
        if (!confname)
        {
-               if (!homedir)
+               if (!homedir) {
                        ERROR ("$HOME not set");
+                       return -1;
+               }
                confname = malloc (strlen(homedir) + strlen(CHANNEL_FILE) + 1);
                memcpy (confname, homedir, strlen(homedir));
                memcpy (confname + strlen(homedir), CHANNEL_FILE,


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to