CSECA-07021 - Buffer overflow in herror_new()

The function name string is copied into a fixed size buffer. Function name strings with a length of more than 99 will cause the buffer to overflow.

Example Code

#include <yoctohttp/common.h>

#include <stdio.h>

int main() {
        herror_t *err;
        err = herror_new("012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", 0, "Error");
        herror_release(err);

        return 0;
}