mbox series

[0/2] ungetc fixes for BZ #27821

Message ID 20240814233232.1468890-1-siddhesh@sourceware.org
Headers show
Series ungetc fixes for BZ #27821 | expand

Message

Siddhesh Poyarekar Aug. 14, 2024, 11:32 p.m. UTC
Fix an uninitialized read and a leak that can be seen with ungetc
operating on an unused stream.

Siddhesh Poyarekar (2):
  ungetc: Fix uninitialized read when putting into unused streams [BZ
    #27821]
  ungetc: Fix backup buffer leak on program exit [BZ #27821]

 libio/genops.c                 |  8 +++++++-
 libio/libioP.h                 |  4 ++--
 manual/stdio.texi              |  8 +++-----
 stdio-common/Makefile          |  7 +++++++
 stdio-common/tst-ungetc-leak.c | 32 ++++++++++++++++++++++++++++++++
 stdio-common/tst-ungetc.c      |  2 ++
 6 files changed, 53 insertions(+), 8 deletions(-)
 create mode 100644 stdio-common/tst-ungetc-leak.c

Comments

Siddhesh Poyarekar Aug. 14, 2024, 11:36 p.m. UTC | #1
Sorry, please disregard this one as I forgot to add one patch to the series.

Sid

On 2024-08-14 19:32, Siddhesh Poyarekar wrote:
> Fix an uninitialized read and a leak that can be seen with ungetc
> operating on an unused stream.
> 
> Siddhesh Poyarekar (2):
>    ungetc: Fix uninitialized read when putting into unused streams [BZ
>      #27821]
>    ungetc: Fix backup buffer leak on program exit [BZ #27821]
> 
>   libio/genops.c                 |  8 +++++++-
>   libio/libioP.h                 |  4 ++--
>   manual/stdio.texi              |  8 +++-----
>   stdio-common/Makefile          |  7 +++++++
>   stdio-common/tst-ungetc-leak.c | 32 ++++++++++++++++++++++++++++++++
>   stdio-common/tst-ungetc.c      |  2 ++
>   6 files changed, 53 insertions(+), 8 deletions(-)
>   create mode 100644 stdio-common/tst-ungetc-leak.c
>