diff options
author | Liubov Dmitrieva <liubov.dmitrieva@intel.com> | 2012-11-08 16:35:39 +0400 |
---|---|---|
committer | Liubov Dmitrieva <ldmitrie@sourceware.org> | 2013-10-23 19:07:35 +0400 |
commit | 5dad50d8242a59291294a71c0d48aec966880c32 (patch) | |
tree | 18555a6c901030e4d57e06c31ea5ac91ffc253ec | |
parent | 333921bb7baa01cd8255901c642b0ab39e9459ab (diff) | |
download | glibc-5dad50d8242a59291294a71c0d48aec966880c32.tar glibc-5dad50d8242a59291294a71c0d48aec966880c32.tar.gz glibc-5dad50d8242a59291294a71c0d48aec966880c32.tar.bz2 glibc-5dad50d8242a59291294a71c0d48aec966880c32.zip |
Inappropriate code style for Intel MPX in elf/dl-close.c
A cast implies memory access with bounds violation.
Let allow that.
-rw-r--r-- | elf/dl-close.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index fe3014cca3..15775ecb58 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -347,6 +347,10 @@ _dl_close_worker (struct link_map *map) struct link_map *tmap = (struct link_map *) ((char *) imap->l_scope[cnt] - offsetof (struct link_map, l_searchlist)); +#ifdef __CHKP__ + tmap = __bnd_set_ptr_bounds(tmap, sizeof(struct link_map)); +#endif + assert (tmap->l_ns == nsid); if (tmap->l_idx == IDX_STILL_USED) ++remain; @@ -393,6 +397,9 @@ _dl_close_worker (struct link_map *map) struct link_map *tmap = (struct link_map *) ((char *) imap->l_scope[cnt] - offsetof (struct link_map, l_searchlist)); +#ifdef __CHKP__ + tmap = __bnd_set_ptr_bounds(tmap, sizeof(struct link_map)); +#endif if (tmap->l_idx != IDX_STILL_USED) { /* Remove the scope. Or replace with own map's |