GCC has `-fsanitize=pointer-compare`, which adds instrumentation to detect
invalid pointer comparisons. When built with this flag, and run with
`ASAN_OPTIONS=detect_invalid_pointer_pairs=1`, virtually the entire testsuite
fails due to [an undefined pointer comparison][1] in `rpmio/macro.c`. This is
in turn due to [`q` being initialized as one before the beginning of an
allocated region][2].
Reproduction script below. PR coming.
[1]:
https://github.com/rpm-software-management/rpm/blob/e838c489dbbf37c0476c423a7555ad4672eb075d/rpmio/macro.c#L229
[2]:
https://github.com/rpm-software-management/rpm/blob/e838c489dbbf37c0476c423a7555ad4672eb075d/rpmio/macro.c#L212
[build-rpm.gz](https://github.com/rpm-software-management/rpm/files/6210103/build-rpm.gz)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1602
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint