From: Tiran Kaskas Date: Sun, 11 Dec 2011 20:57:10 +0000 Message-ID: Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_A273A2F6519C0D42BFF02CA9C6A825112D003E1Esrviltxch02tmtt_" MIME-Version: 1.0 Subject: [Openvpn-devel] Problem with alloc_buf_gc function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "openvpn-devel@lists.sourceforge.net" --_000_A273A2F6519C0D42BFF02CA9C6A825112D003E1Esrviltxch02tmtt_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Looking into the function alloc_buf_gc() in file buffer.c, it returns a str= uct buffer, which seems to me is allocated on the stack, which is causing a= n issue, I believe, since the function calling alloc_buf_gc() will work on = a buffer which becomes garbage. Please confirm I am not missing something. Thanks, Tiran --_000_A273A2F6519C0D42BFF02CA9C6A825112D003E1Esrviltxch02tmtt_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Looking into the function alloc_buf_gc() in file buf= fer.c, it returns a struct buffer, which seems to me is allocated on the st= ack, which is causing an issue, I believe, since the function calling alloc= _buf_gc() will work on a buffer which becomes garbage.

 

Please confirm I am not missing something.

 

Thanks,

Tiran

--_000_A273A2F6519C0D42BFF02CA9C6A825112D003E1Esrviltxch02tmtt_--