Fix PSYNC crash with wrong offset (#10243)
Fix PSYNC crash with wrong offset (#10243)

`PSYNC replicationid str_offset` will crash the server.

The reason is in `masterTryPartialResynchronization`,
we will call `getLongLongFromObjectOrReply` check the
offset. With a wrong offset, it will add a reply and
then trigger a full SYNC and the client become a replica.

So crash in `c->bufpos == 0 && listLength(c->reply) == 0`.
In this commit, we check the psync_offset before entering
function `masterTryPartialResynchronization`, and return.

Regardless of that crash, accepting the sync, but also replying
with an error would have corrupt the replication stream.
PKRoma/redis,yossigo/redis,oranagra/redis,ofirluzon/redis,charsyam/redis,ofirluzon/redis,yossigo/redis,neomantra/redis,charsyam/redis,soloestoy/redis,ofirluzon/redis,PKRoma/redis,antirez/redis,neomantra/redis,oranagra/redis,yossigo/redis,PKRoma/redis,PKRoma/redis,soloestoy/redis,neomantra/redis,oranagra/redis,yossigo/redis,yossigo/redis,antirez/redis,soloestoy/redis,soloestoy/redis,neomantra/redis,neomantra/redis,charsyam/redis,ofirluzon/redis,charsyam/redis,antirez/redis,oranagra/redis,antirez/redis,PKRoma/redis,soloestoy/redis,ofirluzon/redis,charsyam/redis,oranagra/redis