Skip to content

msgpack-ruby creates messages that crash msgpack-js #15

Description

@doughsay

Check here: msgpack/msgpack-ruby#66

Creating a msg with a | (pipe) character in it from ruby crashes msgpack-js with this error:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: -590689048 trailing bytes
  at Object.decode (/var/www/pigeon/node_modules/socket.io-redis/node_modules/msgpack-js/msgpack.js:201:47)
  at Redis.onmessage (/var/www/pigeon/node_modules/socket.io-redis/index.js:94:24)
  at RedisClient.emit (events.js:106:17)
  at RedisClient.return_reply (/var/www/pigeon/node_modules/redis/index.js:696:22)
  at HiredisReplyParser.<anonymous> (/var/www/pigeon/node_modules/redis/index.js:321:14)
  at HiredisReplyParser.emit (events.js:95:17)
  at HiredisReplyParser.execute (/var/www/pigeon/node_modules/redis/lib/parser/hiredis.js:43:18)
  at RedisClient.on_data (/var/www/pigeon/node_modules/redis/index.js:547:27)
  at Socket.<anonymous> (/var/www/pigeon/node_modules/redis/index.js:102:14)
  at Socket.emit (events.js:95:17)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions