Strict aliasing violation in XORN macro
error: 'gmtime' was not declared in this scope; did you mean 'getTime'?
ld.bfd: warning: /usr/lib64/crt0-efi-x86_64.o: missing .note.GNU-stack section implies executable stack
Thanks for the applied commit. I think it contains a small typo: diff --git a/agen5/defLoad.c b/agen5/defLoad.c index 99258cd6..c3f13254 100644 --- a/agen5/defLoad.c +++ b/agen5/defLoad.c @@ -470,7 +470,7 @@ read_defs(void) */ { size_t sz = data_sz + sizeof(long) + sizeof(*base_ctx); - base_ctx = (scan_ctx_t *)AGALOC(rsz, "file buf"); + base_ctx = (scan_ctx_t *)AGALOC(sz, "file buf"); memset(VOIDP(base_ctx), 0, sz); } base_ctx->scx_line = 1; as reported by: [ 15s] defLoad.c:468:41: error: 'rsz' undeclared...
Please close this issue.
It's GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105217
Our analysis is not correct: rem_sz = data_sz+4+sizeof(*base_ctx); base_ctx = (scan_ctx_t *)AGALOC(rem_sz, "file buf"); memset(VOIDP(base_ctx), 0, rem_sz); base_ctx->scx_line = 1; rem_sz = data_sz; Note rem_sz is assigned data_sz, then data = (base_ctx + 1) means that data has room for rem_sz + 4. Thus fread(VOIDP(data), (size_t)1, rem_sz, fp); should be fine. Let me isolate a test-case.
autogen fails with -D_FORTIFY_SOURCE3