mirror of
https://github.com/predis/predis.git
synced 2026-09-12 11:27:05 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a5b55e46e | |||
| 401abc4315 |
+2
-1
@@ -1,8 +1,9 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
## Unlreleads
|
## Unreleased
|
||||||
### Added
|
### Added
|
||||||
### Changed
|
### Changed
|
||||||
|
- Deprecated `CommandInterface::deserializeCommand()` (CVE GHSA-w6f5-v2h6-g786)
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed RESP3 double parsing returning positive `INF` for `-inf` payloads (#1716)
|
- Fixed RESP3 double parsing returning positive `INF` for `-inf` payloads (#1716)
|
||||||
- Fixed `client_info` connection parameter being ignored (#1722)
|
- Fixed `client_info` connection parameter being ignored (#1722)
|
||||||
|
|||||||
@@ -158,6 +158,9 @@ abstract class Command implements CommandInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* @deprecated Not binary-safe; see CommandInterface::deserializeCommand().
|
||||||
|
* Scheduled for removal in the next major.
|
||||||
*/
|
*/
|
||||||
public static function deserializeCommand(string $serializedCommand): CommandInterface
|
public static function deserializeCommand(string $serializedCommand): CommandInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -98,6 +98,12 @@ interface CommandInterface
|
|||||||
*
|
*
|
||||||
* @param string $serializedCommand
|
* @param string $serializedCommand
|
||||||
* @return static
|
* @return static
|
||||||
|
*
|
||||||
|
* @deprecated Not binary-safe: it re-parses on "\r\n" and ignores RESP bulk-length
|
||||||
|
* prefixes, so any argument containing "\r\n" is corrupted, and it
|
||||||
|
* instantiates a command class from the parsed input. Never call it on
|
||||||
|
* untrusted or serialized data (see CVE GHSA-w6f5-v2h6-g786). Scheduled
|
||||||
|
* for removal in the next major.
|
||||||
*/
|
*/
|
||||||
public static function deserializeCommand(string $serializedCommand): CommandInterface;
|
public static function deserializeCommand(string $serializedCommand): CommandInterface;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,12 @@ final class RawCommand implements CommandInterface
|
|||||||
return $buffer;
|
return $buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* @deprecated Not binary-safe; see CommandInterface::deserializeCommand().
|
||||||
|
* Scheduled for removal in the next major.
|
||||||
|
*/
|
||||||
public static function deserializeCommand(string $serializedCommand): CommandInterface
|
public static function deserializeCommand(string $serializedCommand): CommandInterface
|
||||||
{
|
{
|
||||||
if ($serializedCommand[0] !== '*') {
|
if ($serializedCommand[0] !== '*') {
|
||||||
|
|||||||
Reference in New Issue
Block a user