[Mesa-dev] [PATCH] target/d3dadapter9: make sure strings are null-terminated

Emil Velikov emil.l.velikov at gmail.com
Tue May 31 19:00:47 UTC 2016


On 31 May 2016 at 02:21, Eric Engestrom <eric at engestrom.ch> wrote:
> From strncpy's man page:
>   Warning: If there is no null byte among the first n bytes of src, the
>   string placed in dest will not be  null-terminated.
>
> CoverityID: 1320457, 1320458, 1255671
>
Change looks fine by me, although I'm not sure if it's even remotely
possible to hit it. Then again... all the duplication makes me cringe.
I'll beat but some patches to minimise that. Then we can apply this
fix (if others are not against it) in a couple of places only.

-Emil


More information about the mesa-dev mailing list