Branch: Tag:

2021-01-12

2021-01-12 21:14:45 by Tobias S. Josefowitz <tobij@tobij.de>

EFUNs: Pass function name to check_all_args()

Using get_fname(NULL) to get the current function name from EFUNs may
result in undefined memory access (and never in the name of the EFUN
anyway). Providing the name explicityly gives more accurate error
messages and less crashes.

281:    struct string_builder ret;    ONERROR tmp;    -  check_all_args(NULL,args, +  check_all_args(DEFINETOSTR(COMBINE_PATH), args,    BIT_STRING, BIT_STRING | BIT_MANY | BIT_VOID, 0);       init_string_builder(&ret, 0);