[PATCH][libstdc++-v3 parallel mode] PR 40852 Avoid overflow for very large inputs

Johannes Singler singler@kit.edu
Wed Oct 28 10:05:00 GMT 2009


Tested x86_64-unknown-linux-gnu: No regressions

Approved and committed for mainline and gcc-4_4-branch.

2009-10-28  Johannes Singler  <singler@kit.edu>

        PR libstdc++/40852
        * include/parallel/multiseq_selection.h
        (multiseq_partition, multiseq_selection):  Avoid intermediate
        values exceeding the integer type range for very large inputs.

Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: big_mssel_simple_44.patch
Type: text/x-patch
Size: 2121 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20091028/e175914d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: big_mssel_simple_trunk.patch
Type: text/x-patch
Size: 2508 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20091028/e175914d/attachment-0001.bin>


More information about the Libstdc++ mailing list