Wireshark-commits: [Wireshark-commits] rev 42407: /trunk/epan/ /trunk/epan/: emem.c

Date: Fri, 04 May 2012 01:33:58 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42407

User: morriss
Date: 2012/05/03 06:33 PM

Log:
 Partial fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7221
 (emem alignment problems on SPARC) :
 
 Add the room for the pointer to the next (from r31577) *before* calculating
 the canary+pad: that way the complete allocation
 (allocation+canary_ptr+canary+pad) will end on an 8-byte boundary (as was the
 case before r31577).
 
 This only solves the alignment problem when using canaries (i.e., not, by
 default, se_ allocations).
 
 (And, yes, this is ignoring the 16-byte alignment requirements of long
 doubles.)

Directory: /trunk/epan/
  Changes    Path          Action
  +3 -2      emem.c        Modified