[lkml]   [2012]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Memory corruption due to word sharing

    On Thu, 2 Feb 2012, Aldy Hernandez wrote:

    > > Seriously - is there any real argument *against* just using the base
    > > type as a hint for access size?
    > If I'm on the hook for attempting to fix this again, I'd also like to
    > know if there are any arguments against using the base type.

    Sure. Simplest example: struct s {int i:24;} __attribute__((packed)).

    You must access only three bytes, no matter what. The basetype (int) is
    four bytes.


     \ /
      Last update: 2012-02-02 17:31    [W:0.017 / U:1.292 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site