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

curl: Incomplete patch for host name wildcard checking

    • None
    • Critical
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      +++ This bug was initially created as a clone of Bug #2237231 +++

      +++ This bug was initially created as a clone of Bug #2237228 +++

      Description of problem:
      While testing a patch of BZ#2233497 using the upstream unit test 1397 I've discovered that the current patch may be incomplete – the unit1397 test fails without the patch attached.

      Version-Release number of selected component (if applicable):
      7.76.1-23.el9_2.2 (rhel-9.2)
      7.76.1-26 (rhel-9)
      7.76.1-23.el9_2.2 (rhel-8.8)

      How reproducible:
      Always

      Steps to Reproduce:
      1. Build curl with --enable-debug (triggers unit testing)
      2. Wait for unit test 1397 to run.
      3. Inspect build log.

      Actual results:

      test 1397...[Curl_cert_hostcheck unit tests]
      ../libtool --mode=execute /usr/bin/valgrind --tool=memcheck --quiet --leak-check=yes --suppressions=../../tests/valgrind.supp --num-callers=16 --log-file=log/valgrind1397 ./unit/unit1397 - >log/stdout1397 2>log/stderr1397
      CMD (1536): ../libtool --mode=execute /usr/bin/valgrind --tool=memcheck --quiet --leak-check=yes --suppressions=../../tests/valgrind.supp --num-callers=16 --log-file=log/valgrind1397 ./unit/unit1397 - >log/stdout1397 2>log/stderr1397
      unit1397 returned 6, when expecting 0
      exit FAILED
      == Contents of files in the log/ dir after test 1397
      === Start of file commands.log
      ../libtool --mode=execute /usr/bin/valgrind --tool=memcheck --quiet --leak-check=yes --suppressions=../../tests/valgrind.supp --num-callers=16 --log-file=log/valgrind1397 ./unit/unit1397 - >log/stdout1397 2>log/stderr1397
      === End of file commands.log
      === Start of file ftpserver.cmd
      Testnum 1397
      === End of file ftpserver.cmd
      === Start of file stderr1397
      URL: -
      HOST: h.e.llo.
      PTRN: *.e.llo
      did NOT MATCH
      HOST: *.e.llo.
      PTRN: *.e.llo
      did NOT MATCH
      HOST: ************.e.llo.
      PTRN: *.e.llo
      did NOT MATCH
      HOST: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.e.llo.
      PTRN: *.e.llo
      did NOT MATCH
      HOST: ��.e.llo.
      PTRN: *.e.llo
      did NOT MATCH
      HOST: h.e.llo
      PTRN: *.e.llo.
      did NOT MATCH
      === End of file stderr1397

      Expected results:
      Test passes.

      Additional info:
      This affects RHEL-9.2 and above.
      RHEL-9.0 will address this in BZ#2233497.

              jmigacz@redhat.com Jacek Migacz
              rhn-support-sbroz Stepan Broz
              Jacek Migacz Jacek Migacz
              Daniel Rusek Daniel Rusek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: