[Bug target/78631] [Intel MPX] libmpxwrappers shared library leads to a non-bounds-preserving memcpy()

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 7 18:02:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78631

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Ilya Enkovich from comment #9)
> (In reply to H.J. Lu from comment #8)
> > 
> > MPX wrapper library doesn't call external functions with bounds
> > and there is no need to use PLT to call internal functions within
> > MPX wrapper library.
> 
> It doesn't explain why it doesn't work.

MPX wrapper library isn't built with -z bndplt since it doesn't call
external functions with bounds.  But some internal functions, which
need bounds, are called via PLT which clear bounds.  It should call
call those internal functions directly instead of via PLT.


More information about the Gcc-bugs mailing list