2025-08-14 18:18 CEST

spring: develop 2cd5db35 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2007-12-29 16:42:36 develop a704ab1c
Changeset * Fix std::bad_alloc bug, there could be an infinite loop in
  UDPConnection::ProcessRawPacket when the packet received was fragmented
  before or in it's length field:

  msglength would be read from uninitialized buffer and if the bytes there
  happened to be 0 it would enter an infinite loop continuously creating
  new RawPackets with length 0 and no data, filling up memory until running
  out of it (ie. std::bad_alloc)

  Now packets like that are properly put in fragmentBuffer for handling
  at a later time.



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5157 37977431-3df6-0310-b722-df95706aa16b
mod - rts/System/Net/UDPConnection.cpp Diff ] File ]