diff options
author | Liubov Dmitrieva <liubov.dmitrieva@intel.com> | 2012-12-19 14:55:21 +0400 |
---|---|---|
committer | Liubov Dmitrieva <ldmitrie@sourceware.org> | 2013-10-23 19:07:35 +0400 |
commit | aacd42d25354ff7b1692cbb534f93c6160e57d19 (patch) | |
tree | 3e5baece0a6865264595214974534c7934e1a7dc | |
parent | 5dad50d8242a59291294a71c0d48aec966880c32 (diff) | |
download | glibc-aacd42d25354ff7b1692cbb534f93c6160e57d19.zip glibc-aacd42d25354ff7b1692cbb534f93c6160e57d19.tar.gz glibc-aacd42d25354ff7b1692cbb534f93c6160e57d19.tar.bz2 |
Inappropriate code style for Intel MPX in libio/fileops.c.
Use INIT (maximum) bounds as it is hard to rewrite the algorithm.
-rw-r--r-- | libio/fileops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index e92f85b..a17504b 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 |