diff options
author | Robert Bragg <[email protected]> | 2017-03-16 22:41:09 +0000 |
---|---|---|
committer | Robert Bragg <[email protected]> | 2017-03-17 13:40:29 +0000 |
commit | 76dc49f3fbeb8a44dde6a34bc4e8f6d7dd883cea (patch) | |
tree | 42ba9d08b565c6a41806ca1f4e73f1d8f7c3f332 /src/intel/Android.mk | |
parent | f8b1b9404e5e584f5915049a5be68898cd383967 (diff) |
i965: bounds checks while concatenating sysfs paths
This adds some missing return value checks for all uses of snprintf in
brw_performance_query.c. This also switches a use of strncpy + strncat
for snprintf for consistency and to avoid the chance of the strncpy
leaving an unterminated string in the dest buffer if the src is too
long.
This issue with strncpy was picked up by Coverity.
CID: 1402201
Signed-off-by: Robert Bragg <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/Android.mk')
0 files changed, 0 insertions, 0 deletions