Make WordPress Core


Ignore:
Timestamp:
03/24/2022 03:18:31 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.17.1.

The latest version of sodium_compat includes further improvements for PHP 8.1 compatibility.

Release notes:
https://github.com/paragonie/sodium_compat/releases/tag/v1.17.1

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.17.0...v1.17.1

Follow-up to [49741], [51002], [51591].

Props jrf, paragoninitiativeenterprises.
Fixes #55453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/src/Core32/Int32.php

    r46586 r52988  
    139139    {
    140140        /** @var int $hi */
    141         $hi = ($m >> 16) & 0xffff;
     141        $hi = ((int) $m >> 16);
     142        $hi &= 0xffff;
    142143        /** @var int $lo */
    143         $lo = ($m & 0xffff);
     144        $lo = ((int) $m) & 0xffff;
    144145        return new ParagonIE_Sodium_Core32_Int32(
    145146            array(
     
    169170                $b_j = $b[$j];
    170171                $product = ($a_i * $b_j) + $r[$i + $j];
    171                 $carry = ($product >> $baseLog2 & 0xffff);
    172                 $r[$i + $j] = ($product - (int) ($carry * $base)) & 0xffff;
     172                $carry = ((int) $product >> $baseLog2 & 0xffff);
     173                $r[$i + $j] = ((int) $product - (int) ($carry * $base)) & 0xffff;
    173174                $r[$i + $j + 1] += $carry;
    174175            }
Note: See TracChangeset for help on using the changeset viewer.