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/Compat.php

    r51591 r52988  
    35343534            }
    35353535        }
     3536        /** @var positive-int $numBytes */
    35363537        if (self::use_fallback('randombytes_buf')) {
    35373538            return (string) call_user_func('\\Sodium\\randombytes_buf', $numBytes);
     3539        }
     3540        if ($numBytes < 0) {
     3541            throw new SodiumException("Number of bytes must be a positive integer");
    35383542        }
    35393543        return random_bytes($numBytes);
Note: See TracChangeset for help on using the changeset viewer.