<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>This is because the ltp source code adds a new function
      "SAFE_FILE_PRINTF" in the version 20170116 of ltp,</p>
    <p>in function "SAFE_FILE_PRINTF", the third arguments need a format
      string, but in fchmodat01.c, at the line</p>
    <p>of 130:</p>
    <p>    <span class="pl-c1">SAFE_FILE_PRINTF</span>(cleanup,
      testfile, testfile)</p>
    <p>it passed the same as the second arguments, it should pass the
      format string of the second argument.</p>
    <p>I will fix it as soon as.</p>
    <br>
    <div class="moz-cite-prefix">On 2017年02月22日 00:28, Burton, Ross
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJTo0Lb4Vjg-1X7O8cQ05YxVeK407i0KM2Ah7m8hXcFwJJhGvg@mail.gmail.com"
      type="cite">Fails with security flags enabled:
      <div><br>
      </div>
      <div>
        <div>| In file included from
          ../../../../include/old/test.h:47:0,</div>
        <div>|                  from fchmodat01.c:44:</div>
        <div>| fchmodat01.c: In function 'setup':</div>
        <div>| ../../../../include/old/old_safe_file_ops.h:55:27: error:
          format not a string literal and no format arguments
          [-Werror=format-security]</div>
        <div>|                    (path), (fmt), ## __VA_ARGS__)</div>
        <div>|                            ^</div>
        <div>| fchmodat01.c:130:2: note: in expansion of macro
          'SAFE_FILE_PRINTF'</div>
        <div>|   SAFE_FILE_PRINTF(cleanup, testfile, testfile);</div>
        <div>|   ^~~~~~~~~~~~~~~~</div>
        <div>| ../../../../include/old/old_safe_file_ops.h:55:27: error:
          format not a string literal and no format arguments
          [-Werror=format-security]</div>
        <div>|                    (path), (fmt), ## __VA_ARGS__)</div>
        <div>|                            ^</div>
        <div>| fchmodat01.c:131:2: note: in expansion of macro
          'SAFE_FILE_PRINTF'</div>
        <div>|   SAFE_FILE_PRINTF(cleanup, testfile2, testfile2);</div>
        <div>|   ^~~~~~~~~~~~~~~~</div>
      </div>
      <div><br>
      </div>
      <div>Ross</div>
    </blockquote>
    <br>
  </body>
</html>