Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-281

[localedef] infinite loop on invalid LC_COLLATE input

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.1.3, 4.1.4, 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      All

    • Severity:
      Runtime Error

      Description

      The localedef utility goes into infinity loop if LC_COLLATE section of the locale definition file is incomplete.

      -----------------------
      $ echo "LC_COLLATE" > collate.src \
      && echo > empty.cm \
      && ../bin/localedef -c -w -f empty.cm -i collate.src collate.empty
      -----------------------

      The details are here:
      http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200608.mbox/%3cF92433E3D38672499C549EB615AFADA07EFF4F@exkiv.kyiv.vdiweb.com%3e

        Attachments

          Activity

            People

            • Assignee:
              sebor Martin Sebor
              Reporter:
              farid Farid Zaripov

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Time Spent - 1h Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - 1h Remaining Estimate - 1h
                1h

                  Issue deployment