Page MenuHomeFreeBSD

D20942.id59713.diff
No OneTemporary

D20942.id59713.diff

Index: lib/libnv/msgio.c
===================================================================
--- lib/libnv/msgio.c
+++ lib/libnv/msgio.c
@@ -63,7 +63,13 @@
/* Linux: arbitrary size, but must be lower than SCM_MAX_FD. */
#define PKG_MAX_SIZE ((64U - 1) * CMSG_SPACE(sizeof(int)))
#else
-#define PKG_MAX_SIZE ((MCLBYTES - CMSG_SPACE(0)) / sizeof(void *))
+/*
+ * Internalized rights occupy sizeof(void *) bytes of space.
+ * We need to use the same limit on 32-bit and 64-bit platforms
+ * so that 32-bit applications using libnv work properly when
+ * run on 64-bit kernels.
+ */
+#define PKG_MAX_SIZE ((MCLBYTES - CMSG_SPACE(0)) / 8)
#endif
static void

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 4, 6:06 PM (10 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29223565
Default Alt Text
D20942.id59713.diff (660 B)

Event Timeline