[RFC] drm + i915 DP MST code preview

Chris Wilson chris at chris-wilson.co.uk
Thu May 8 00:24:02 PDT 2014


On Thu, May 08, 2014 at 11:56:02AM +1000, Dave Airlie wrote:
> I've pushed a branch of -modesetting to
> 
> http://cgit.freedesktop.org/~airlied/xf86-video-modesetting/log/?h=dp-mst

In parse_path_blob():
char conn_id[5];

len = conn - (blob_data + 4);
if (len + 1> 5) return -1;

memcpy(conn_id, blob_data + 4, len);
conn_id[len + 1] = '\0';
        ^^^^^^^ should just be len.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list