title: How to handle Coverity error TAINTED_SCALAR in fread
body: <p>While reading a value from file for an integer, coverity check is giving following error</p>
  
  <p>Calling function "fread" taints argument "readval"</p>
  
  <pre><code>//coverity note: Calling function "fread" taints argument "readval".
  if(fread(&amp;readval, sizeof(int), 1, fp) &lt; 1) {
      return;
  } else {
      //coverity note: Passing tainted variable "readval" to a tainted sink.
      f1(&amp;readval);
  }
  </code></pre>
  
  <p>How to handle this error?
  What sanity checks I need to perform for 'readval' to ensure it is not corrupt.</p>