In the following code (from xorg-server)

    if (a == 0)
        addr = 0;
    (...)
    memset(addr, '\0', a);

the path for a==0 is turned into a trap by -fisolate-erroneous-paths. (Is
calling memset like this undefined behaviour?)
Is it intentional that essentially a noop is turned into a trap?


Dominic

Reply via email to