-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed unchecked fseek calls in 'boot' program (CWE-252)
IF the image and boot files are truncated or corrupt, these fseek files will fail however without checking them, we will read or write subsequent garbage. This commit checks the fseek result code and will log and close the file on failure.
- Loading branch information
Showing
1 changed file
with
40 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters