NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/47757

Please pull up this fix to netbsd-6.
I just found out that pkgsrc/devel/ccache is broken due to a variant of this bug.

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>

int main(int argc, char **argv) {
        char *itemplate = "/tmp/test/test.XXX";
        char *otemplate = strdup(itemplate);
        system("rm -rf /tmp/test");
        printf("%s\n", itemplate);
        printf("%s\n", otemplate);


Home | Main Index | Thread Index | Old Index