[PATCH] d3drm: Retreive mesh name at loading time. Implement GetName and SetName. (try 5) (resend)

Alexandre Julliard julliard at winehq.org
Wed May 9 04:55:06 CDT 2012


Christian Costa <titan.costa at gmail.com> writes:

> Try 5: Use a growing buffer to store name.

I don't think a growing buffer makes sense for this.

> +    if (name)
> +    {
> +        *size = min(*size, This->name_size);
> +        memcpy(name, This->name, *size);
> +        /* Make sure we have the terminating 0 in case of truncation */
> +        name[*size] = 0;

Buffer overflow.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list