diff options
| author | Dustin Sallings <dustin@spy.net> | 2009-02-12 14:28:43 -0800 |
|---|---|---|
| committer | Dustin Sallings <dustin@spy.net> | 2009-02-12 14:30:57 -0800 |
| commit | ecdb01141df0911e81657095c07997687c5d2fc8 (patch) | |
| tree | e2202716ca9a02d0447bc93da534e8aa9ed91cfc /memcached.c | |
| parent | bad6c614e58639d0685706f17dc9562323c30f39 (diff) | |
| download | memcached-ecdb01141df0911e81657095c07997687c5d2fc8.tar.gz | |
Fix memory corruption error in stats cachedump.
This should not be used generally, but it assumes all of the keys are
null terminated.
This change copies all the keys for null-termination (making the
process even slower), but is at least somewhat safer.
Diffstat (limited to 'memcached.c')
| -rw-r--r-- | memcached.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/memcached.c b/memcached.c index a5fc781..3d088b3 100644 --- a/memcached.c +++ b/memcached.c @@ -1928,7 +1928,6 @@ typedef struct token_s { #define COMMAND_TOKEN 0 #define SUBCOMMAND_TOKEN 1 #define KEY_TOKEN 1 -#define KEY_MAX_LENGTH 250 #define MAX_TOKENS 8 |
