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

fwrite on stream opened with open_memstream() truncates the buffer size

    • Major
    • sst_pt_libraries
    • ssg_platform_tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • If docs needed, set a value

      Current output:

      """
      Running test: fopen()
      position after fwrite: 24
      position after SEEK_END: 24

      Running test: fmemopen()
      position after fwrite: 24
      position after SEEK_END: 24

      Running test: open_memstream()
      position after fwrite: 24
      position after SEEK_END: 4

      open_memstream() final buffer size: 4
      """

      Expected ouput:
      """
      Running test: fopen()
      position after fwrite: 24
      position after SEEK_END: 24

      Running test: fmemopen()
      position after fwrite: 24
      position after SEEK_END: 24

      Running test: open_memstream()
      position after fwrite: 24
      position after SEEK_END: 24

      open_memstream() final buffer size: 24
      """

      The seek to the start of the buffer, and write data smaller than
      the stream length truncates the memory stream.

            glibc-bugzilla Platform Tools - Libraries Bot
            rhn-support-pandrade Paulo Andrade
            Platform Tools - Libraries Bot Platform Tools - Libraries Bot
            qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: