From aacd42d25354ff7b1692cbb534f93c6160e57d19 Mon Sep 17 00:00:00 2001 From: Liubov Dmitrieva Date: Wed, 19 Dec 2012 14:55:21 +0400 Subject: [PATCH] Inappropriate code style for Intel MPX in libio/fileops.c. Use INIT (maximum) bounds as it is hard to rewrite the algorithm. --- libio/fileops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libio/fileops.c b/libio/fileops.c index e92f85b2434..a17504ba9dc 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -758,6 +758,9 @@ decide_maybe_mmap (_IO_FILE *fp) void *p; p = __mmap64 (NULL, st.st_size, PROT_READ, MAP_SHARED, fp->_fileno, 0); +#ifdef __CHKP__ + p = __bnd_init_ptr_bounds(p); +#endif if (p != MAP_FAILED) { /* OK, we managed to map the file. Set the buffer up and use a -- 2.47.2