Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider (sch jbop) (X_X)@==(Q_Q)@

...

Code Block
bgColor#ccccff
FILE* fptr = fopen(file_name, "rb");
fpos_t pos;

if (fptr == NULL) {
  /* Handle Error */
}

/* Read data */

if (fgetpos(fptr, &pos)) {
  /* Handle Error */
}

/* Read the data that will be "pushed back" */

if (fsetpos(fptr, &pos)) {
  /* Handle Error */
}

/* Continue on */

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

FIO13-A

2 ( medium ) 2 (

probable )

1 ( high )

P4

L3

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...