Bug 107443

Summary: Build error on arm64: v3d_decoder.c:837:17: error: format not a string literal and no format arguments [-Werror=format-security]
Product: Mesa Reporter: Fabio Pedretti <pedretti.fabio>
Component: Drivers/DRI/v3dAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: ARM   
OS: Linux (All)   
URL: https://launchpadlibrarian.net/381194267/buildlog_ubuntu-xenial-arm64.mesa_18.2~git1808010730.bd56e1~oibaf~x_BUILDING.txt.gz
Whiteboard:
i915 platform: i915 features:

Description Fabio Pedretti 2018-08-01 14:19:18 UTC
Full build log including configure options:
https://launchpadlibrarian.net/381194267/buildlog_ubuntu-xenial-arm64.mesa_18.2~git1808010730.bd56e1~oibaf~x_BUILDING.txt.gz

Error:
../../../src/broadcom/cle/v3d_decoder.c:654:52: warning: variable ‘total_length’ set but not used [-Wunused-but-set-variable]
         uint32_t text_offset = 0, text_length = 0, total_length;
                                                    ^
../../../src/broadcom/cle/v3d_decoder.c: In function ‘iter_advance_field’:
../../../src/broadcom/cle/v3d_decoder.c:837:17: error: format not a string literal and no format arguments [-Werror=format-security]
                 snprintf(iter->name, sizeof(iter->name), iter->field->name);
                 ^
../../../src/broadcom/cle/v3d_decoder.c:837:17: error: format not a string literal and no format arguments [-Werror=format-security]
Comment 1 Eric Anholt 2018-08-01 18:39:51 UTC
commit c2eab33b088f90cb66802a9e96e92305cccebdc7 (HEAD -> master, origin/master)
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Aug 1 11:25:58 2018 -0700

    v3d: Actually put the "%s" in the snprintf.

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.