Fix potential invalid read past end of array
Fix potential invalid read past end of array

If array has N elements, we can't read +1 if we are already at N.

Also, we need to move elements by their storage size in the array,
not just by individual bytes.

splitice/redis,slfs007/mk-redis,ttuna/msot-redis,ramonsnir/redis,splitice/redis,xuzhezhaozhao/redis_reading,spearhead-ea/redis,ksarch-saas/redis,xuzhezhaozhao/redis_reading,splitice/redis,louisliangjun/redis,MSOpenTech/redis,xuzhezhaozhao/redis_reading,jxwr/redis,HunanTV/redis,HunanTV/redis,xuzhezhaozhao/redis_reading,ksarch-saas/redis,ttuna/msot-redis,MSOpenTech/redis,spearhead-ea/redis,jxwr/redis,maodeyi/redis_lua,MSOpenTech/redis,ttuna/msot-redis,himoca/redis,ksarch-saas/redis,ksarch-saas/redis,himoca/redis,HunanTV/redis,slfs007/mk-redis,louisliangjun/redis,ramonsnir/redis,louisliangjun/redis,ttuna/msot-redis,maodeyi/redis_lua,splitice/redis,slfs007/mk-redis,ttuna/msot-redis,maodeyi/redis_lua,louisliangjun/redis,spearhead-ea/redis,ramonsnir/redis,MSOpenTech/redis,jxwr/redis,MSOpenTech/redis,HunanTV/redis,himoca/redis