this coredumps with latest pull from mob if compiled with -b on ubuntu 20.
took me half a day to boil it down from my large program.
---- 8< ---------------------------------
#include <stdlib.h>
#include <stdio.h>

void mm(char *d, const char *s) {
    d[0] = s[0];
}

int main(int argc, char**argv) {
    char *b = "c";
    char **a = malloc(sizeof(void*));
    a[0] = malloc(1);
    mm(a[0], b);
}

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to