]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Inappropriate code style for Intel MPX. Fix missing of bounds in sysdeps/generic...
authorLiubov Dmitrieva <liubov.dmitrieva@intel.com>
Mon, 15 Oct 2012 11:01:09 +0000 (15:01 +0400)
committerLiubov Dmitrieva <ldmitrie@sourceware.org>
Wed, 23 Oct 2013 15:07:35 +0000 (19:07 +0400)
sysdeps/generic/unwind-dw2-fde.h

index fad46bfbcc14c7337f4e9a284f57d0c3d9d522b6..7fce24c19449ef3875c2d8f2bbcf07bbde7cf821 100644 (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 *