From: Liubov Dmitrieva Date: Mon, 15 Oct 2012 11:01:09 +0000 (+0400) Subject: Inappropriate code style for Intel MPX. Fix missing of bounds in sysdeps/generic... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff922ed8bdf38971bee571a4574bf20e083782ad;p=thirdparty%2Fglibc.git Inappropriate code style for Intel MPX. Fix missing of bounds in sysdeps/generic/unwind-dw2-fde.h --- diff --git a/sysdeps/generic/unwind-dw2-fde.h b/sysdeps/generic/unwind-dw2-fde.h index fad46bfbcc1..7fce24c1944 100644 --- a/sysdeps/generic/unwind-dw2-fde.h +++ b/sysdeps/generic/unwind-dw2-fde.h @@ -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 *