[PATCH 01/4] msvcp110: Add tr2_sys__Open_dir implementation.(try 4)

Piotr Caban piotr.caban at gmail.com
Fri Oct 30 10:08:03 CDT 2015


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.

Thanks,
Piotr



More information about the wine-devel mailing list