meson option to disable building tests
It accelerates building, but that's not the reason for this request. I noticed this in the build logs.
Step #12: [776/955] Generating plugin-resources.c with a custom command.
Step #12: ../../src/glib/glib/ghash.c:1956:18: runtime error: unsigned integer overflow: 2398035776 + 2088204538 cannot be represented in type 'unsigned int'
Step #12: ../../src/glib/gio/gvdb/gvdb-builder.c:94:29: runtime error: unsigned integer overflow: 193432043 * 33 cannot be represented in type 'unsigned int'
Step #12: ../../src/glib/glib/gvarianttypeinfo.c:513:21: runtime error: negation of 4 cannot be represented in type 'gsize' (aka 'unsigned long')
Step #12: ../../src/glib/glib/gvarianttypeinfo.c:583:10: runtime error: unsigned integer overflow: 18446744073709551615 + 1 cannot be represented in type 'gsize' (aka 'unsigned long')
Step #12: ../../src/glib/gio/gvdb/gvdb-builder.c:237:18: runtime error: negation of 24 cannot be represented in type 'guint64' (aka 'unsigned long')
Step #12: ../../src/glib/glib/gvariant-serialiser.c:960:18: runtime error: negation of 4 cannot be represented in type 'gsize' (aka 'unsigned long')
Step #12: ../../src/glib/glib/gvariant-serialiser.c:973:59: runtime error: unsigned integer overflow: 18446744073709551615 + 1 cannot be represented in type 'unsigned long'
Step #12: ../../src/glib/gio/gvdb/gvdb-builder.c:209:25: runtime error: negation of 1 cannot be represented in type 'unsigned int'
The custom command is glib_compile_resources
. The problem for oss-fuzz is that binary running instrumented. In this case UBSAN
prints (but does not exit on) often harmless unsigned-integer-overflow
occurrences. (It was only enabled yesterday, so wasn't in previous logs.)
If this were a problem that caused any of the sanitizers to exit, it could not be intercepted, and so the build would presumably just fail. Preferably no built binaries should run during the build phase.