Sitelet https://github.com/phpredis/phpredis/issues/1936
Skip to content

PHP Fatal Error: Possible integer overflow in memory allocation (18446744073709551614 + 4096) #1936

Description

@POPSuL

Expected behaviour

Driver should return false, because value 123 is not data compressed by zstd

Actual behaviour

PHP Fatal Error: Possible integer overflow in memory allocation (18446744073709551614 + 4096)

I'm seeing this behaviour on

  • OS: Ubuntu linux
  • Redis: 6.0.6
  • PHP: 8.0.2
  • phpredis: 5.3.3

Steps to reproduce, backtrace or example script

  1. Set some value into cache (e.g. abc=123)
  2. Enable ZSDT compression
  3. try to fetch value by key abc

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions