summaryrefslogtreecommitdiff
path: root/debian/jit-test.c
diff options
context:
space:
mode:
authorIvo De Decker <ivodd@debian.org>2014-12-06 18:58:19 +0000
committerIvo De Decker <ivodd@debian.org>2014-12-06 18:58:19 +0000
commitdd986e8b547c0dde924c4b566ad0894ad4f1beb9 (patch)
treea87ee49df2a732f2be8d1b3c9e46a341e6fb8698 /debian/jit-test.c
pcre3 (2:8.35-3.3) unstable; urgency=medium
* Non-maintainer upload. * Upstream patch for heap buffer overflow, CVE-2014-8964, taken from 1:8.36-1 (Closes: #770478) Thanks to Salvatore Bonaccorso for the reminder. # imported from the archive
Diffstat (limited to 'debian/jit-test.c')
-rw-r--r--debian/jit-test.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/jit-test.c b/debian/jit-test.c
new file mode 100644
index 0000000..e476e08
--- /dev/null
+++ b/debian/jit-test.c
@@ -0,0 +1,17 @@
+// This little program runs the macros in the SLJIT header file
+// which auto-detect architecture. This enables us to only attempt
+// to use SLJIT on architectures that support it
+//
+#define SLJIT_CONFIG_AUTO 1
+#include "../sljit/sljitConfigInternal.h"
+
+#ifndef SLJIT_CONFIG_UNSUPPORTED
+ #warning JIT enabled
+#else
+ #error JIT not supported
+#endif
+
+int main(void)
+{
+ return 0;
+}