Summary: | Properly terminate parsed environment values with '\0'. | ||
---|---|---|---|
Product: | libva | Reporter: | Tobias Stoeckmann <tobias> |
Component: | core | Assignee: | haihao <haihao.xiang> |
Status: | RESOLVED FIXED | QA Contact: | Sean V Kelley <seanvk> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | patch to fix this issue |
Description
Tobias Stoeckmann
2016-06-25 18:12:00 UTC
--- a/va/va_trace.c +++ b/va/va_trace.c @@ -546,6 +546,7 @@ static int open_tracing_specil_file( FILE *fp = NULL; strncpy(env_value, fn_env, 1024); + env_value[0] = '\0'; should the index be 1023 instead of 0? Oops, yes of course. It has to be 1023 instead of 0, thanks for spotting. :) commit 1517fd276e12cac14c018d5a30792177eb6c59de Author: Tobias Stoeckmann <tobias@stoeckmann.org> Date: Sat Jun 25 20:08:31 2016 +0200 Properly terminate parsed environment values with '\0'. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.