Skip to content
Commit b689a830 authored by Rob Clark's avatar Rob Clark
Browse files

drm/msm/rd: fix crash with long process cmdlines



The [v]snprintf() functions return the size that *would have* been
written into the buffer, rather than the size *actually* written.
Which results in us trying to memcpy() past the end of the stack.

What we really want is [v]scnprintf().

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 9027b871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment