Bug#715667: [Mayhem] Bug report on dvb-apps: azap crashes with exit status 139
Bernhard Übelacker
bernhardu at vr-web.de
Wed May 6 19:19:17 UTC 2015
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,
More information about the pkg-vdr-dvb-devel
mailing list