Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8850] Check packet opcode for >= NUM_MSG_TYPES before queueing.
Also add check for wrong packet status requirement in code.
- Loading branch information
XTZGZoReX
committed
Nov 20, 2009
1 parent
fdb060c
commit 5651043
Showing
3 changed files
with
86 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "8849" | ||
#define REVISION_NR "8850" | ||
#endif // __REVISION_NR_H__ |
5651043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this just speedup (more early) check for not existed packets send by client or cheating tools.
5651043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sLog.outError( "SESSION: received non-existed opcode %s (0x%.4X)",LookupOpcodeName(opcode), opcode);
If opcode is greater that list LookupOpcodeName will return null and then server could crash
5651043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, copy-paste mistake :). Thanks.
5651043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact this exist before your patch and if this is problem then this problem exist before your commit.
In nay case i drop attempt output name for not existed opcode in one from next commits.