summary refs log tree commit diff
path: root/libio/freopen.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-06-12 14:48:33 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-06-12 14:48:33 +0200
commitcfa611447b44d2fa1cb3d8f853b6f3f75ade366a (patch)
tree52f89d4d9ddf45959ab478d4701b80e42e66614f /libio/freopen.c
parent744e829637162bb7d5029632aacf341c64b86990 (diff)
downloadglibc-cfa611447b44d2fa1cb3d8f853b6f3f75ade366a.tar.gz
glibc-cfa611447b44d2fa1cb3d8f853b6f3f75ade366a.tar.xz
glibc-cfa611447b44d2fa1cb3d8f853b6f3f75ade366a.zip
libio: freopen of default streams crashes in old programs [BZ #24632]
As seen with very old i386 GCC binaries.
Diffstat (limited to 'libio/freopen.c')
-rw-r--r--libio/freopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/freopen.c b/libio/freopen.c
index 17b00258cd..82e39f5028 100644
--- a/libio/freopen.c
+++ b/libio/freopen.c
@@ -62,7 +62,7 @@ freopen (const char *filename, const char *mode, FILE *fp)
 	 to the old libio may be passed into shared C library and wind
 	 up here. */
       _IO_old_file_close_it (fp);
-      _IO_JUMPS_FILE_plus (fp) = &_IO_old_file_jumps;
+      _IO_JUMPS_FUNC_UPDATE (fp, &_IO_old_file_jumps);
       result = _IO_old_file_fopen (fp, gfilename, mode);
     }
   else