ports/mail/spamguard/files/patch-config.h.in
Stefan Eßer 6a919278eb Fix build with -fno-common and correct software bugs
There were software bugs in 3 source files, most due to wrong use of sizeof
(e.g. using the size of a pointer instead of the data, or subtracting a
value from the argument of sizeof, not the resulting size value.

A test for a short write assigned the length written to a variable and
performed a comparison with that variable in a single expression and with
no defined order of the these two operations resulting in either a
comparison with 0 (the value before assignement) or with the just assigned
value (tautological comparison). Either case did not catch a short write.

I have not checked the quality of the code nay further than these issues
that caused compiler warnings, but given the severity and fundamental lack
of understanding shown by these examples, I'm not convinced that this
program can be trusted to work correctly.
2020-09-23 14:15:14 +00:00

19 lines
558 B
C

--- config.h.in.orig 2007-05-08 06:59:20 UTC
+++ config.h.in
@@ -78,6 +78,9 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
/* Define to the version of this package. */
#undef PACKAGE_VERSION
@@ -90,5 +93,5 @@
/* Define to rpl_malloc if the replacement function should be used. */
#undef malloc
-/* Define to `unsigned' if <sys/types.h> does not define. */
+/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t