From: Liubov Dmitrieva Date: Wed, 19 Dec 2012 10:55:21 +0000 (+0400) Subject: Inappropriate code style for Intel MPX in libio/fileops.c. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aacd42d25354ff7b1692cbb534f93c6160e57d19;p=thirdparty%2Fglibc.git Inappropriate code style for Intel MPX in libio/fileops.c. Use INIT (maximum) bounds as it is hard to rewrite the algorithm. --- 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