Bug#716467: Fix available

Jeremy Sowden jeremy at azazel.net
Tue Jun 25 13:51:41 BST 2019


The crash was the result of passing a null pointer to strlen when
allocating memory for the PID file:

    /* we can theoretically live without a config file */
    home = getenv("HOME");
    if (home) {
        config.file = calloc(1, strlen(home) + 9);
        sprintf(config.file, "%s/.wmixrc", home);
    }

    /* handle writing PID file, silently ignore if we can't do it */
    pid = calloc(1, strlen(home) + 10);
    sprintf(pid, "%s/.wmix.pid", home);
    fp = fopen(pid, "w");
    if (fp) {
        fprintf(fp, "%d\n", getpid());
        fclose(fp);
    }
    free(pid);

This was fixed in a later release, 3.3, which has since packaged and
uploaded to the archive:

  $ apt-cache policy wmix
  wmix:
    Installed: 3.3-1
    Candidate: 3.3-1
    Version table:
   *** 3.3-1 990
          990 http://mirror.ox.ac.uk/debian testing/main amd64 Packages
          990 http://ftp.uk.debian.org/debian testing/main amd64 Packages
          990 http://ftp.debian.org/debian testing/main amd64 Packages
           99 http://mirror.ox.ac.uk/debian unstable/main amd64 Packages
           99 http://ftp.uk.debian.org/debian unstable/main amd64 Packages
           99 http://ftp.debian.org/debian unstable/main amd64 Packages
          100 /var/lib/dpkg/status
       3.1-5.1 900
          900 http://mirror.ox.ac.uk/debian stable/main amd64 Packages
          900 http://ftp.uk.debian.org/debian stable/main amd64 Packages
          900 http://ftp.debian.org/debian stable/main amd64 Packages

J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-wmaker-devel/attachments/20190625/11c5b207/attachment.sig>


More information about the Pkg-wmaker-devel mailing list