[OE-core] [PATCH V4 1/1] ltp: upgrade to 20170116
Dengke Du
dengke.du at windriver.com
Wed Feb 22 07:07:11 UTC 2017
This is because the ltp source code adds a new function
"SAFE_FILE_PRINTF" in the version 20170116 of ltp,
in function "SAFE_FILE_PRINTF", the third arguments need a format
string, but in fchmodat01.c, at the line
of 130:
SAFE_FILE_PRINTF(cleanup, testfile, testfile)
it passed the same as the second arguments, it should pass the format
string of the second argument.
I will fix it as soon as.
On 2017年02月22日 00:28, Burton, Ross wrote:
> Fails with security flags enabled:
>
> | In file included from ../../../../include/old/test.h:47:0,
> | from fchmodat01.c:44:
> | fchmodat01.c: In function 'setup':
> | ../../../../include/old/old_safe_file_ops.h:55:27: error: format not
> a string literal and no format arguments [-Werror=format-security]
> | (path), (fmt), ## __VA_ARGS__)
> | ^
> | fchmodat01.c:130:2: note: in expansion of macro 'SAFE_FILE_PRINTF'
> | SAFE_FILE_PRINTF(cleanup, testfile, testfile);
> | ^~~~~~~~~~~~~~~~
> | ../../../../include/old/old_safe_file_ops.h:55:27: error: format not
> a string literal and no format arguments [-Werror=format-security]
> | (path), (fmt), ## __VA_ARGS__)
> | ^
> | fchmodat01.c:131:2: note: in expansion of macro 'SAFE_FILE_PRINTF'
> | SAFE_FILE_PRINTF(cleanup, testfile2, testfile2);
> | ^~~~~~~~~~~~~~~~
>
> Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170222/e657b226/attachment-0002.html>
More information about the Openembedded-core
mailing list