Opened 2 years ago

Closed 2 years ago

#5898 defect closed duplicate (duplicate)

fix stack overflow in memcache protocol

Reported by: binbino Owned by:
Priority: normal Milestone:
Component: core Keywords: memcache
Cc: ericsung2008@… Branch:
Author: Launchpad Bug:

Description

Memcache protocol uses line received that can be switched to raw mode. If large packet containing multiple segments of alternating line and raw data is received, it is processed recursively, causing stack overflow.

Simplify this code and cut this recursion using while loop.

Attachments (1)

memcache-fix-stack-overflow.patch (2.5 KB) - added by binbino 2 years ago.

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by binbino

comment:1 Changed 2 years ago by binbino

  • Author set to Eric Sung
  • Cc ericsung2008@… added
  • Summary changed from ix stack overflow in memcache protocol to fix stack overflow in memcache protocol

comment:2 Changed 2 years ago by exarkun

  • Author Eric Sung deleted
  • Keywords review removed
  • Milestone regular-releases deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #3050.

Note: See TracTickets for help on using tickets.