diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-cdr/bin2iso/files | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-cdr/bin2iso/files')
-rw-r--r-- | app-cdr/bin2iso/files/bin2iso-19b-sanity-checks.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/app-cdr/bin2iso/files/bin2iso-19b-sanity-checks.patch b/app-cdr/bin2iso/files/bin2iso-19b-sanity-checks.patch deleted file mode 100644 index 43e3f4aae3b4..000000000000 --- a/app-cdr/bin2iso/files/bin2iso-19b-sanity-checks.patch +++ /dev/null @@ -1,30 +0,0 @@ -Add more checks to prevent segfaults in ill-formatted files - -http://bugs.gentoo.org/show_bug.cgi?id=90540 - ---- a/bin2iso19b_linux.c -+++ b/bin2iso19b_linux.c -@@ -237,6 +237,10 @@ - // Get the 'mode'
- if (strncmp(&Line[2], "TRACK ", 6)==0)
- {
-+ if (Line[8] < '0' || Line[8] > '9' || Line[9] < '0' || Line[9] > '9') {
-+ printf("Error: Track # is not a 2 digit number\n");
-+ exit(1);
-+ }
- strncpy(track->num, &Line[8], 2); track->num[2] = '\0';
-
- track->mode = UNKNOWN;
-@@ -246,7 +250,11 @@ - if(strncmp(&Line[11], "MODE2/2352", 10)==0) track->mode = MODE2_2352;
- if(strncmp(&Line[11], "MODE2/2336", 10)==0) track->mode = MODE2_2336;
- }
-- else return(1);
-+ else
-+ {
-+ printf("Error: 2nd line does not begin with ' TRACK '\n");
-+ exit(1);
-+ }
-
- // Set the name
- strcpy(track->name, sBinFilename);
|