diff --git a/NEWS b/NEWS index 03c49fe5c4..dcdfa74a99 100644 --- a/NEWS +++ b/NEWS @@ -151,6 +151,7 @@ The following bugs are resolved with this release: [24228] old x86 applications that use legacy libio crash on exit [24531] Malloc tunables give tcache assertion failures [24744] io: Remove the copy_file_range emulation + [25203] libio: Disable vtable validation for pre-2.1 interposed handles [25204] Ignore LD_PREFER_MAP_32BIT_EXEC for SUID programs diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c index 92d0f4a0d3..d6cbc9ffb7 100644 --- a/libio/oldstdfiles.c +++ b/libio/oldstdfiles.c @@ -87,6 +87,11 @@ _IO_check_libio (void) stdout->_vtable_offset = 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); } }