[PATCH 01/4] msvcp110: Add tr2_sys__Open_dir implementation.(try 4)
YongHao Hu
christopherwuy at gmail.com
Sat Oct 31 04:35:53 CDT 2015
Hi.
On 15/10/30 下午11:08, Piotr Caban wrote:
> On 10/29/15 16:28, YongHao Hu wrote:
>> + char temppath[MAX_PATH+1];
>> + TRACE("(%p %s %p %p)\n", target, debugstr_a(dest), err_code, type);
>> + if(strlen(dest) >= MAX_PATH) {
>> + *err_code = ERROR_BAD_PATHNAME;
>> + return NULL;
>> + }
>> + strcpy(temppath, dest);
>> + strcat(temppath, "\\*");
> There may still write outside of temppath array in this code.
I had sent a new patch to upstream.
I think it will fix possible buffer overflow this time.
Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20151031/4fb31046/attachment.html>
More information about the wine-devel
mailing list