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

glibc: Fix transliteration regression in iconv tool

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • glibc-2.34-168.el9
    • No
    • Low
    • Patch
    • 9a4b0eaf726f5404c6683d5c7c5e86f61c3f3fbc
    • rhel-pt-c-libs
    • ssg_platform_tools
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      Cause:
      Consequence:
      Fix:
      Result:
      Show
      Cause: Consequence: Fix: Result:
    • Proposed
    • All
    • None

      This upstream commit is required to avoid a regression in transliteration handling by the iconv tool:

      commit 9a4b0eaf726f5404c6683d5c7c5e86f61c3f3fbc
      Author: Aurelien Jarno <aurelien@aurel32.net>
      Date:   Sat Dec 14 11:44:11 2024 +0100
      
          iconv: do not report error exit with transliteration [BZ #32448]
          
          Commit 6cbf845fcdc7 ("iconv: Preserve iconv -c error exit on invalid
          inputs (bug 32046)") changed the error exit code to report an error when
          an input character has been transliterated. This looks like a bug as the
          moto in the iconv program is to report an error code in the same
          condition as the iconv() function.
          
          This happens because the STANDARD_TO_LOOP_ERR_HANDLER macro sets a
          default value for result and later updates it if the transliteration
          succeed. With the changes, setting the default value also marks the
          input as illegal.
          
          Fix that by setting up the default value of result only when the
          transliteration is not used. This works because __gconv_transliterate()
          calls __gconv_mark_illegal_input() to return an error. At the same time
          also fix the typo outself -> ourselves.
          
          Fixes: 6cbf845fcdc7
          Resolves: BZ #32448
          Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
      

              skolosov@redhat.com Sergey Kolosov
              fweimer@redhat.com Florian Weimer
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              Sergey Kolosov Sergey Kolosov
              Marc Muehlfeld Marc Muehlfeld
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: