Bug 107443 - Build error on arm64: v3d_decoder.c:837:17: error: format not a string literal and no format arguments [-Werror=format-security]
Summary: Build error on arm64: v3d_decoder.c:837:17: error: format not a string litera...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/v3d (show other bugs)
Version: git
Hardware: ARM Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact:
URL: https://launchpadlibrarian.net/381194...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-01 14:19 UTC by Fabio Pedretti
Modified: 2018-08-01 18:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.