Package: capnproto
Version: 0.4.1-3
Severity: normal
Tags: patch

The hppa and mips architecture have the same nan format (i.e.,
quiet and signalling nans are different from x86, etc).  With the
attached change, capnproto builds successfully on hppa.  See:
http://buildd.debian-ports.org/status/fetch.php?pkg=capnproto&arch=hppa&ver=0.4.1-3&stamp=1428027386

The current mips patch could be modified to add hppa.

-- System Information:
Debian Release: 8.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.17.8+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_CA.utf8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 capnproto (0.4.1-3) unstable; urgency=high
 .
   * Fix CVE-2015-2310: Integer overflow in pointer validation (Closes: 780565)
   * Fix CVE-2015-2311: Integer underflow in pointer validation (Closes: 780566)
   * Fix CVE-2015-2312: CPU usage amplification attack (Closes: 780567)
   * Fix CVE-2015-2313: CPU usage amplification attack #2 (Closes: 780568)
Author: Tom Lee <deb...@tomlee.co>
Bug-Debian: https://bugs.debian.org/780565
Bug-Debian: https://bugs.debian.org/780566
Bug-Debian: https://bugs.debian.org/780567
Bug-Debian: https://bugs.debian.org/780568

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- capnproto-0.4.1.orig/src/capnp/layout.h
+++ capnproto-0.4.1/src/capnp/layout.h
@@ -37,7 +37,7 @@
 #include "blob.h"
 #include "endian.h"
 
-#if __mips__ && !defined(CAPNP_CANONICALIZE_NAN)
+#if (defined(__mips__) || defined(__hppa__)) && !defined(CAPNP_CANONICALIZE_NAN)
 #define CAPNP_CANONICALIZE_NAN 1
 // Explicitly detect NaNs and canonicalize them to the quiet NaN value as would be returned by
 // __builtin_nan("") on systems implementing the IEEE-754 recommended (but not required) NaN

Reply via email to