Changes between Initial Version and Version 1 of Ticket #304


Ignore:
Timestamp:
May 28, 2007 11:52:11 AM (17 years ago)
Author:
bennylp
Comment:

Fixed in r1307.

Application now should use this construct when declaring the hash buffer:

  pj_hash_entry_buf buffer;

This will make sure that the buffer is aligned and suitable for pointer assignment.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #304

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #304 – Description

    initial v1  
    2222Since the buffer is of type {{{array of char}}}, this won't get aligned by compiler, and later in {{{find_entry()}}} in {{{hash.c}}}, it will cause unaligned memory access exception in assignment to {{{entry->value}}}. 
    2323 
     24Thanks !ChenHuan <chenhuan at sict.ac.cn> for finding this problem!