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

glibc: Improve testing coverage for strdup and strndup.

    • Icon: Story Story
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.4
    • rhel-9.4
    • glibc
    • None
    • glibc-2.34-92.el9
    • Patch
    • sst_pt_libraries
    • ssg_platform_tools
    • 15
    • 19
    • 1
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • No
    • CentOS Stream
    • Release Note Not Required
    • All
    • None

      We should improve coverage testing for strdup and strndup by backporting to RHEL9:

      commit 0aa5b28a504c6f1f17b387d8147715d1496fff62 (origin/azanella/bz30266)
      Author: Joe Simmons-Talbott <josimmon@redhat.com>
      Date:   Fri Apr 21 09:24:25 2023 -0400
      
          wcsmbs: Add wcsdup() tests. (BZ #30266)
          
          Enable wide character testcases for wcsdup().
          
          Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
      
      commit 0c48aa0551151ea201f7f528492e89a0b08a6890
      Author: Joe Simmons-Talbott <josimmon@redhat.com>
      Date:   Fri Apr 21 09:24:24 2023 -0400
      
          string: Add tests for strndup (BZ #30266)
          
          Copy strncpy tests for strndup.  Covers some basic testcases with random
          strings.  Remove tests that set the destination's bytes and checked the
          resulting buffer's bytes.  Remove wide character test support since
          wcsndup() doesn't exist.
          
          Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
      
      commit eaaad78db41724e5a18a42becb238bfc4e683998
      Author: Joe Simmons-Talbott <josimmon@redhat.com>
      Date:   Fri Apr 21 09:24:23 2023 -0400
      
          string: Add tests for strdup (BZ #30266)
          
          Copy strcpy tests for strdup.  Covers some basic testcases with random
          strings.  Add a zero-length string testcase.
          
          Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
      
      commit 1626d8a521c7c771d4118b1328421fea113cab64
      Author: Joe Simmons-Talbott <josimmon@redhat.com>
      Date:   Fri Apr 21 09:24:22 2023 -0400
      
          string: Allow use of test-string.h for non-ifunc implementations.
          
          Mark two variables as unused to silence warning when using
          test-string.h for non-ifunc implementations.
          
          Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
      

            pfrankli Patsy Griffin
            rhn-support-codonell Carlos O'Donell
            Patsy Griffin Patsy Griffin
            Sergey Kolosov Sergey Kolosov
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: