Package: hatari
Version: 1.6.2-1

While building the package using our research compiler infrastructure we noticed
that ConfigureParams was declared with conflicting types for src/audio.c (and
possibly others) vs. src/debug/evaluate.c when building in build-winuae:
ENABLE_WINUAE_CPU, as set in config.h, must be consistently seen before
configuration.h, but note the following order of includes:

audio.c:

#include "main.h"
#include "audio.h"
#include "configuration.h"  (includes config.h)



evaluate.c

#include "configuration.h"
...
#include "main.h"  (includes config.h)


As the storage sizes of the two structs are entirely different, this may lead to
arbitrary undefined behaviour when accessing ConfigureParams.

Best,
Michael

Attachment: pgppCHnZrNEUz.pgp
Description: PGP signature

Reply via email to