search for: 410bb60

Displaying 2 results from an estimated 2 matches for "410bb60".

2014 Jun 20
3
[PATCH] isohybrid: fix overflow on 32 bit system
...x86-64-20140505110100.iso: seek error - 8: Invalid argument Replace fseek with fseeko to fix this issue. Signed-off-by: Kai Kang <kai.kang at windriver.com> --- utils/isohybrid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/isohybrid.c b/utils/isohybrid.c index 410bb60..23fc6c0 100644 --- a/utils/isohybrid.c +++ b/utils/isohybrid.c @@ -1126,7 +1126,7 @@ main(int argc, char *argv[]) * end of the image */ - if (fseek(fp, (isostat.st_size + padding) - orig_gpt_size - 512, + if (fseeko(fp, (isostat.st_size + padding) - orig_gpt_size - 512, SEEK_SET))...
2014 May 12
4
[PATCH] isohybrid: fix overflow on 32 bit system
...: Invalid argument Check the offset and call fseek() multi-times if offset is too large. Signed-off-by: Kai Kang <kai.kang at windriver.com> --- utils/isohybrid.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/utils/isohybrid.c b/utils/isohybrid.c index 410bb60..4047287 100644 --- a/utils/isohybrid.c +++ b/utils/isohybrid.c @@ -34,6 +34,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <limits.h> #include <sys/stat.h> #include <inttypes.h> #include <uuid/uuid.h> @@ -888,7 +889,7 @@ m...