Message ID | 20191127192010.417C020AF6@gnutoolchain-gerrit.osci.io |
---|---|
State | New |
Headers | show |
Series | [pushed] libio: Disable vtable validation for pre-2.1 interposed handles [BZ #... | expand |
diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c index bb1705b..95c041a 100644 --- a/libio/oldstdfiles.c +++ b/libio/oldstdfiles.c @@ -83,6 +83,11 @@ = stderr->_vtable_offset = ((int) sizeof (struct _IO_FILE) - (int) sizeof (struct _IO_FILE_complete)); + + if (_IO_stdin_.vtable != &_IO_old_file_jumps + || _IO_stdout_.vtable != &_IO_old_file_jumps + || _IO_stderr_.vtable != &_IO_old_file_jumps) + IO_set_accept_foreign_vtables (&_IO_vtable_check); } }