View | Details | Raw Unified
Collapse All | Expand All

(-) common/packets.c.old (+2 lines)
 Lines 577-584    Link Here 
	  chunk->total_length, chunk->chunk_length);
	  chunk->total_length, chunk->chunk_length);
  if (chunk->total_length < 0
  if (chunk->total_length < 0
      || chunk->chunk_length < 0
      || chunk->total_length >= MAX_ATTRIBUTE_BLOCK
      || chunk->total_length >= MAX_ATTRIBUTE_BLOCK
      || chunk->offset < 0
      || chunk->offset < 0
      || chunk->offset > chunk->total_length
      || chunk->offset + chunk->chunk_length > chunk->total_length
      || chunk->offset + chunk->chunk_length > chunk->total_length
      || (chunk->offset != 0
      || (chunk->offset != 0
          && chunk->total_length != pplayer->attribute_block_buffer.length)) {
          && chunk->total_length != pplayer->attribute_block_buffer.length)) {