coolexp / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

Issuing auth on a non protected instance crash the server. #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start the redis server without authentication enable.
2. Connect with the database with a telnet session.
3. Issue the command AUTH

What is the expected output? What do you see instead?

The server should ignore the request and return +OK. But
Redis crashes with a Bus error.

What version of the product are you using? On what operating system?

GIT version on a Mac OS X.

Please provide any additional information below.

Evidence - Client session:
[@strongcoffee antirez-redis]$ telnet localhost 6379 
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
auth foo
Connection closed by foreign host.
[@strongcoffee antirez-redis]$ 

Evidence - Server output:
[@strongcoffee antirez-redis]$ ./redis-server 
- Server started, Redis version 0.08
- DB loaded from disk
- The server is now ready to accept connections on port 6379
. DB 0: 5 keys in 16 slots HT.
. 0 clients connected (0 slaves), 2566 bytes in use
. Accepted 127.0.0.1:59784
. DB 0: 5 keys in 16 slots HT.
. 1 clients connected (0 slaves), 2767 bytes in use
Bus error
[@strongcoffee antirez-redis]$ 

Original issue reported on code.google.com by mavcu...@gmail.com on 2 Apr 2009 at 2:39

GoogleCodeExporter commented 8 years ago
Hello, thanks. Fixed and verified in Redis-git

Original comment by anti...@gmail.com on 2 Apr 2009 at 7:57