]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Inappropriate code style for Intel MPX in libio/fileops.c.
authorLiubov Dmitrieva <liubov.dmitrieva@intel.com>
Wed, 19 Dec 2012 10:55:21 +0000 (14:55 +0400)
committerLiubov Dmitrieva <ldmitrie@sourceware.org>
Wed, 23 Oct 2013 15:07:35 +0000 (19:07 +0400)
Use INIT (maximum) bounds as it is hard to rewrite the algorithm.

libio/fileops.c

index e92f85b243496c07d3677b97c785da7f42fb6c38..a17504ba9dc9c2dba5114b49507e4029043de129 100644 (file)
@@ -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