[openssl-dev] Doubt about memory realloc logic in BUF_MEM_grow_clean and BUF_MEM_grow

Raja ashok raja.ashok at huawei.com
Thu Apr 20 08:13:39 UTC 2017


Hi Salz,

I raised a PR for this change. Already got some comments from Kurt. Requesting you also to check and provide your suggestions on it.
https://github.com/openssl/openssl/pull/3255

Currently raised PR on only 1.0.2. Once its reviewed, I can raise on other branches (1.1.0 and Master).


Raja Ashok V K
Huawei Technologies
Bangalore, India
http://www.huawei.com 

本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which 
is intended only for the person or entity whose address is listed above. Any use of the 
information contained herein in any way (including, but not limited to, total or partial 
disclosure, reproduction, or dissemination) by persons other than the intended 
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by 
phone or email immediately and delete it!

-----Original Message-----
From: openssl-dev [mailto:openssl-dev-bounces at openssl.org] On Behalf Of Salz, Rich via openssl-dev
Sent: 17 April 2017 22:02
To: openssl-dev at openssl.org
Subject: Re: [openssl-dev] Doubt about memory realloc logic in BUF_MEM_grow_clean and BUF_MEM_grow

>??????? memset(&str->data[str->length], 0, len - str->length);

The intent is to blank out everything from what was currently written.  This "covers up" possible pointer over-runs.

We could do just from the old max.
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


More information about the openssl-dev mailing list