mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-26 10:22:25 +00:00
[Bug Fix] Add Bounds Checking to OP_LFGCommand Comment Processing
Theoretically this could be used to corrupt memory, but they would have to get extremely lucky to actually execute a successful attack
This commit is contained in:
parent
5b74f1e756
commit
323f5ea92e
@ -9190,7 +9190,7 @@ void Client::Handle_OP_LFGCommand(const EQApplicationPacket *app)
|
|||||||
LFGFromLevel = lfg->FromLevel;
|
LFGFromLevel = lfg->FromLevel;
|
||||||
LFGToLevel = lfg->ToLevel;
|
LFGToLevel = lfg->ToLevel;
|
||||||
LFGMatchFilter = lfg->MatchFilter;
|
LFGMatchFilter = lfg->MatchFilter;
|
||||||
strcpy(LFGComments, lfg->Comments);
|
strn0cpy(LFGComments, lfg->Comments, sizeof(LFGComments));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Message(0, "Error: unknown LFG value %i", lfg->value);
|
Message(0, "Error: unknown LFG value %i", lfg->value);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user