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

piecewise_constant_distribution's initializer_list constructor is not correct for `size < 2`

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • gcc / libstdc++
    • None
    • None
    • None
    • rhel-pt-cpp-libs
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113761 

      Goal

      Fix the incorrect behaviour identified in the upstream bug.

      Investigate why the implementation stores empty vectors for 0 or 1 boundaries and then populates new vectors as needed. Is that to avoid long-lived heap allocations when the values are only needed transiently? See if the mailing list has an related discussion from around the time of the changes I mentioned in the upstream bug. Do we just want to fix the bug, or refactor the handling of n < 2? Can that even be done without breaking the ABI?

      Acceptance criteria

      Close the upstream bug.

              Unassigned Unassigned
              araghuku Alekya Raghukula
              Jonathan Wakely Jonathan Wakely
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: