jfsutils/jfsutils_format-security_ftbs.patch

45 lines
1.4 KiB
Diff

diff -rU4 jfsutils-1.1.15/fscklog/display.c jfsutils-1.1.15-mine/fscklog/display.c
--- jfsutils-1.1.15/fscklog/display.c 2005-11-22 21:43:54.000000000 +0100
+++ jfsutils-1.1.15-mine/fscklog/display.c 2013-12-04 21:42:37.451313506 +0100
@@ -181,9 +181,9 @@
-1;
} else {
/* the record looks ok */
msg_txt = &log_entry[log_entry_pos];
- printf(msg_txt);
+ printf("%s", msg_txt);
/*
* set up for the next record
*/
local_recptr->infile_buf_data_len +=
diff -rU4 jfsutils-1.1.15/fscklog/fscklog.c jfsutils-1.1.15-mine/fscklog/fscklog.c
--- jfsutils-1.1.15/fscklog/fscklog.c 2006-06-05 21:31:40.000000000 +0200
+++ jfsutils-1.1.15-mine/fscklog/fscklog.c 2013-12-04 21:43:57.649593842 +0100
@@ -251,9 +251,9 @@
va_end(args);
sprintf(debug_detail, " [%s:%d]\n", basename(file_name), line_number);
- printf(msg_string);
- printf(debug_detail);
+ printf("%s", msg_string);
+ printf("%s", debug_detail);
return 0;
}
diff -rU4 jfsutils-1.1.15/logdump/helpers.c jfsutils-1.1.15-mine/logdump/helpers.c
--- jfsutils-1.1.15/logdump/helpers.c 2005-11-22 21:43:55.000000000 +0100
+++ jfsutils-1.1.15-mine/logdump/helpers.c 2013-12-04 21:44:33.407704099 +0100
@@ -94,9 +94,9 @@
va_end(args);
sprintf(debug_detail, " [%s:%d]\n", file_name, line_number);
- printf(msg_string);
- printf(debug_detail);
+ printf("%s", msg_string);
+ printf("%s", debug_detail);
return 0;
}