Re: [PATCH v2] drm: etnaviv: fix strncpy sizeof argument

2019-04-02 Thread Bo YU
On Thu, Mar 28, 2019 at 4:09 PM Bo YU wrote: > > Calling strncpy with a maximum size argument of 64 bytes on destination > array "domain->name" of size 64 bytes might leave the destination string > unterminated. > > Detected by CoverityScan, CID# 1443992: Memory - illegal accesses > (BUFFER_SIZE

[PATCH v2] drm: etnaviv: fix strncpy sizeof argument

2019-03-29 Thread Bo YU
Calling strncpy with a maximum size argument of 64 bytes on destination array "domain->name" of size 64 bytes might leave the destination string unterminated. Detected by CoverityScan, CID# 1443992: Memory - illegal accesses (BUFFER_SIZE_WARNING) Fixes: 9e2c2e2730126 (drm/etnaviv: add infrastru