Opened 5 years ago

Closed 5 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: binbino Branch:
Author:

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 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by binbino

comment:1 Changed 5 years ago by binbino

Author: Eric Sung
Cc: binbino added
Summary: ix stack overflow in memcache protocolfix stack overflow in memcache protocol

comment:2 Changed 5 years ago by Jean-Paul Calderone

Author: Eric Sung
Keywords: review removed
Milestone: regular-releases
Resolution: duplicate
Status: newclosed

Duplicate of #3050.

Note: See TracTickets for help on using tickets.