Inappropriate code style for Intel MPX. Fix missing of bounds in sysdeps/generic/unwind-dw2-fde.h

This commit is contained in:
Liubov Dmitrieva 2012-10-15 15:01:09 +04:00 committed by Liubov Dmitrieva
parent 304c5527fb
commit ff922ed8bd

View File

@ -147,7 +147,7 @@ typedef struct dwarf_fde fde;
static inline struct dwarf_cie *
get_cie (struct dwarf_fde *f)
{
return (void *)&f->CIE_delta - f->CIE_delta;
return (char *)f + offsetof (struct dwarf_fde, CIE_delta) - f->CIE_delta;
}
static inline fde *