Package: judy
Severity: important
Tags: patch

Hi,

An alignment problem in judy causes other packages to fail (e.g.
miredo).  A few structures are not evenly dividable by word_t and thus
too little memory is allocated. The attached patch fixes this problem.
An alternative solution is to round up the size properly when
allocating.

bye, Roman

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: m68k
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-m68k-amiga
Locale: LANG=de_DE.UTF-8, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
diff -ur judy-1.0.3.org/src/Judy1/Judy1.h judy-1.0.3/src/Judy1/Judy1.h
--- judy-1.0.3.org/src/Judy1/Judy1.h	2005-02-15 22:06:07.000000000 +0100
+++ judy-1.0.3/src/Judy1/Judy1.h	2006-11-30 12:05:19.000000000 +0100
@@ -432,7 +432,7 @@
 /* 2 */ jp_t       jpm_JP;              // JP to first branch; see above.
 /* 4 */ Word_t     jpm_LastUPop0;       // last jpm_Pop0 when convert to BranchU
 // Note:  Field names match PJError_t for convenience in macros:
-/* 7 */ char       je_Errno;            // one of the enums in Judy.h.
+/* 7 */ int        je_Errno;            // one of the enums in Judy.h.
 /* 7/8 */ int      je_ErrID;            // often an internal source line number.
 /* 8/9 */ Word_t   jpm_TotalMemWords;   // words allocated in array.
 } j1pm_t, *Pj1pm_t;
diff -ur judy-1.0.3.org/src/JudyL/JudyL.h judy-1.0.3/src/JudyL/JudyL.h
--- judy-1.0.3.org/src/JudyL/JudyL.h	2005-02-15 22:06:07.000000000 +0100
+++ judy-1.0.3/src/JudyL/JudyL.h	2006-11-30 04:03:29.000000000 +0100
@@ -368,7 +368,7 @@
 /* 4 */ Word_t     jpm_LastUPop0;       // last jpm_Pop0 when convert to BranchU
 /* 7 */ Pjv_t      jpm_PValue;          // pointer to value to return.
 // Note:  Field names match PJError_t for convenience in macros:
-/* 8 */ char       je_Errno;            // one of the enums in Judy.h.
+/* 8 */ int        je_Errno;            // one of the enums in Judy.h.
 /* 8/9  */ int     je_ErrID;            // often an internal source line number.
 /* 9/10 */ Word_t  jpm_TotalMemWords;   // words allocated in array.
 } jLpm_t, *PjLpm_t;

Reply via email to