diff options
author | root <root@rshg054.dnsready.net> | 2012-06-04 00:01:23 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-04 00:01:23 +0000 |
commit | 1e6588d64f084decf287a58b7ff93ff0ce4d0446 (patch) | |
tree | 29bf5b8778e1eb67871d9e6e8bb6e205bdde5db7 /community/multipath-tools/buffer-overflows.patch | |
parent | 80053e720288b6205a59c52c1b31c14a0f830989 (diff) |
Mon Jun 4 00:01:23 UTC 2012
Diffstat (limited to 'community/multipath-tools/buffer-overflows.patch')
-rw-r--r-- | community/multipath-tools/buffer-overflows.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/multipath-tools/buffer-overflows.patch b/community/multipath-tools/buffer-overflows.patch new file mode 100644 index 000000000..38719aceb --- /dev/null +++ b/community/multipath-tools/buffer-overflows.patch @@ -0,0 +1,22 @@ +--- multipath-tools-0.4.9.orig/libmultipath/prioritizers/datacore.c 2010-05-22 05:01:58.000000000 -0700 ++++ multipath-tools-0.4.9/libmultipath/prioritizers/datacore.c 2010-11-28 12:22:12.037228583 -0800 +@@ -94,7 +94,7 @@ + if ((io_hdr.info & SG_INFO_OK_MASK) != SG_INFO_OK) + return 0; + +- snprintf(vendor, 9, "%.8s\n", inqBuffp + 8); ++ snprintf(vendor, 8, "%.8s\n", inqBuffp + 8); + snprintf(product, 17, "%.16s", inqBuffp + 16); + snprintf(luname, 21, "%.19s", inqBuffp + 36); + snprintf(wwpn, 17, "%.16s", inqBuffp + 96); +--- multipath-tools-0.4.9.orig/libmultipath/prioritizers/hds.c 2010-05-22 05:01:58.000000000 -0700 ++++ multipath-tools-0.4.9/libmultipath/prioritizers/hds.c 2010-11-28 12:22:44.199483997 -0800 +@@ -123,7 +123,7 @@ + return -1; + } + +- snprintf (vendor, 9, "%.8s", inqBuffp + 8); ++ snprintf (vendor, 8, "%.8s", inqBuffp + 8); + snprintf (product, 17, "%.16s", inqBuffp + 16); + snprintf (serial, 5, "%.4s", inqBuffp + 40); + snprintf (ldev, 5, "%.4s", inqBuffp + 44); |