[PATCH] x86: Check cfun != NULL before accessing silent_p
Martin Liška
mliska@suse.cz
Sat Mar 20 13:46:12 GMT 2021
On 3/20/21 1:21 PM, H.J. Lu wrote:
> |Since construct_container may be called with cfun == NULL, check cfun != NULL before accessing silent_p. |
Thank you for the quick fix.
Please use the minimal reproducer for a test-case:
$ cat va-arg-pack-1.C
#include <stdarg.h>
void abort() {
double ld;
va_list ap;
ld = va_arg(ap, long double);
if (ld)
abort();
}
Martin
More information about the Gcc-patches
mailing list