Commit 159be46
aditya
Bug #20478242 MEMCAHCED SET COMMAND ACCEPTS NEGATIVE VALUES FOR EXPIRE TIME
PROBLEM
Inside memcached server the expire time is stored as unsigned int,so when the
user gives a negative value it is converted to a large number and is accepted.
FIX
Simple and easy fix is to restrict the maximum value of expire time to INT_MAX32
since any negative value will be greater than this and we can reject it.
Also removed useless assert in innodb_flush_sync_conn() function1 parent 96dfb59 commit 159be46
3 files changed
Lines changed: 17 additions & 2 deletions
File tree
- plugin/innodb_memcached
- daemon_memcached
- daemon
- utilities
- innodb_memcache/src
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
4247 | 4247 | | |
4248 | 4248 | | |
4249 | 4249 | | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
4250 | 4257 | | |
4251 | 4258 | | |
4252 | 4259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
90 | 99 | | |
91 | 100 | | |
92 | 101 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2027 | 2027 | | |
2028 | 2028 | | |
2029 | 2029 | | |
2030 | | - | |
2031 | 2030 | | |
2032 | 2031 | | |
2033 | 2032 | | |
| |||
0 commit comments