Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.43k stars 382 forks source link

Malicious player is sending something to the server to cause this error and crash. #667

Closed saybrook closed 11 years ago

saybrook commented 11 years ago

LOG:

[10/14/13 19:27:09] [Server API] Warning: Plugin "TShock" has had an unhandled exception thrown by one of its NetSendBytes handlers: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Collections.Generic.List1.set_Capacity(Int32 value) at System.Collections.Generic.List1.EnsureCapacity(Int32 min) at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at TShockAPI.PacketBufferer.BufferBytes(ServerSock socket, Byte[] buffer, Int32 offset, Int32 count) at TShockAPI.PacketBufferer.ServerHooks_SendBytes(SendBytesEventArgs args) at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args)

saybrook commented 11 years ago

Because I know you care: :+1:

-autobroadcast -worldrefill -essentials -IRC -C3 -loottableeditor -delayedstop -boss spawner -diemob -renameplayer -seconomy -teleport request -history -worldedit

inb4 "that's a shitton of plugins"

I have 24GB memory on the server, no issues there. I have seen this happen now and it sends an error that crashes the client with something to do with SpawnNPC (ill grab a screen next time)