Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-66253

glibc: Fix memory leak after fdopen seek failure

    • glibc-2.34-137.el9
    • No
    • Low
    • Patch
    • Hide
      b2c3ee3724900975deaf5eae57640bb0c2d7315e
      d0106b6ae26c8cc046269358a77188105c99d5e3
      Show
      b2c3ee3724900975deaf5eae57640bb0c2d7315e d0106b6ae26c8cc046269358a77188105c99d5e3
    • 1
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 5
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • SST PT Libraries Sprint 13
    • Unspecified Release Note Type - Unknown
    • All
    • None

      We should backport this bugfix:

      commit b2c3ee3724900975deaf5eae57640bb0c2d7315e
      Author: Andreas Schwab <schwab@suse.de>
      Date:   Tue Jun 4 11:01:11 2024 +0200
      
          Remove memory leak in fdopen (bug 31840)
          
          Deallocate the memory for the FILE structure when seeking to the end fails
          in append mode.
          
          Fixes: ea33158c96 ("Fix offset caching for streams and use it for ftell (BZ #16680)")
      
      commit d0106b6ae26c8cc046269358a77188105c99d5e3
      Author: Florian Weimer <fweimer@redhat.com>
      Date:   Tue Jun 4 14:37:35 2024 +0200
      
          libio: Test for fdopen memory leak without SEEK_END support (bug 31840)
          
          The bug report used /dev/mem, but /proc/self/mem works as well
          (if available).
      

      It reduces conflicts in libio/Makefile and is a useful fix to have anyway.

              skolosov@redhat.com Sergey Kolosov
              fweimer@redhat.com Florian Weimer
              Florian Weimer Florian Weimer
              Sergey Kolosov Sergey Kolosov
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: