File: disable-libaes-siv-malloc-test.patch

package info (click to toggle)
ntpsec 1.2.3%2Bdfsg1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,960 kB
  • sloc: ansic: 62,004; python: 32,017; sh: 1,553; yacc: 1,293; makefile: 190; javascript: 138
file content (28 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Disable Use /var/lib/ntpsec for driftfile
 This is the path used in the ntpsec packaging, to stay out of the namespace
 of the ntp package.
Bug: https://github.com/dfoxfranke/libaes_siv/issues/17
Bug-Debian: https://bugs.debian.org/1102745
Bug-NTPsec: https://gitlab.com/NTPsec/ntpsec/-/issues/846
Origin: vendor
Author: Richard Laager <rlaager@debian.org>
Last-Update: 2025-04-14
--- a/libaes_siv/tests.c
+++ b/libaes_siv/tests.c
@@ -572,7 +572,16 @@
 }
 
 int main(void) {
+/* This is disabled, because on some platforms, OpenSSL presumably makes an
+ * allocation right away, so CRYPTO_set_mem_functions() fails.
+ *
+ * https://bugs.debian.org/1102745
+ * https://gitlab.com/NTPsec/ntpsec/-/issues/846
+ * https://github.com/dfoxfranke/libaes_siv/issues/17
+ */
+#if 0
         test_malloc_failure();
+#endif
 	test_cleanup_before_free();
         test_vector_1();
         test_vector_2();