Garbage value passed to getLocaleInfoWrapper in HostLocaleProviderAdapter_md

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 11, 17, 18, 19
    • Component/s: core-libs
    • b07
    • windows
    • Verified

      Reported by clang-tidy:
      https://github.com/openjdk/jdk/blame/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.base/windows/native/libjava/HostLocaleProviderAdapter_md.c#L838
      isGenitive is only assigned when style contains CALENDAR_STYLE_STANDALONE_MASK
      otherwise it contains garbage.

      FYI [~naoto]

            Assignee:
            Daniel Jelinski
            Reporter:
            Daniel Jelinski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: