-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug with possible random byte overwrite.
In certain cases ebiso will overwrite one "random" byte with '\0', which might lead to file corruption.
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* ebiso.c | ||
* | ||
* Version: 0.2.1 | ||
* Version: 0.2.2 | ||
* | ||
* Release date: 13.12.2015 | ||
* Release date: 2.4.2015 | ||
* | ||
* Copyright 2015 Vladimir (sodoma) Gozora <[email protected]> | ||
* | ||
|
@@ -214,6 +214,7 @@ int main(int argc, char *argv[]) { | |
if ((rv = iso9660_directory_record(list, fp, &ISO_data)) != E_OK) // 0xC000 | ||
unlink(ISO_data.iso_file); | ||
else { | ||
fseek(fp, 0, SEEK_END); | ||
fseek(fp, BLOCK_SIZE - 1, SEEK_CUR); | ||
fwrite(&zero, 1, 1, fp); // Write one empty block at the end | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* ebiso.h | ||
* | ||
* Version: 0.2.1 | ||
* Version: 0.2.2 | ||
* | ||
* Release date: 13.12.2015 | ||
* Release date: 2.4.2015 | ||
* | ||
* Copyright 2015 Vladimir (sodoma) Gozora <[email protected]> | ||
* | ||
|
@@ -33,7 +33,7 @@ | |
#include <getopt.h> | ||
|
||
#define PROGNAME "ebiso" | ||
#define EBISO_VERSION "0.2.1" | ||
#define EBISO_VERSION "0.2.2" | ||
|
||
#if (DEBUG == 1) | ||
static void disp_level(struct file_list_t *list_to_display, int level); | ||
|