#4 Fix memory corruption on 64bit archs

closed-accepted
nobody
None
5
2009-12-14
2009-12-02
Daniel Kobras
No

This is an alternative patch for (now closed) bug #2819312. The original patch provided there still doesn't prevent corruption for idx 0, and probably introduces problems on non-Intel archs due to mis-aligned pointers. This patch instead changes element granularity in the Pool chunks to the machine's word size (unsigned long), thus making sure that the next pointers will always fit. The patch was diffed against 0.8.1a. For 1.0rc4 and up, the patch from #2819312 has to be backed out first. (The patch was prepared for the Debian package of muse and hence uses the dpatch format. It can be applied like a regular diff. The extra header will be ignored by the patch program.)

Discussion

  • Daniel Kobras
    Daniel Kobras
    2009-12-02

    Fix mempool corruption on 64bit archs in the Pool allocator

     
  • Robert Jonsson
    Robert Jonsson
    2009-12-14

    Thanks!

     
  • Robert Jonsson
    Robert Jonsson
    2009-12-14

    • status: open --> closed-accepted