summaryrefslogtreecommitdiffstats
path: root/src/usr/trace
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-01-14 13:27:17 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-01-15 16:36:07 -0600
commit1519b0b4786367a4855edfd24844b896293d5d80 (patch)
tree6f623748e529c8b8a7bf3aa958c320f349108296 /src/usr/trace
parent728120d7abd9c4d7ebfca8b212a2bdc4a4f93b4e (diff)
downloadblackbird-hostboot-1519b0b4786367a4855edfd24844b896293d5d80.tar.gz
blackbird-hostboot-1519b0b4786367a4855edfd24844b896293d5d80.zip
Potential buffer overrun in trace collection.
Change-Id: I8352c37f3789c684df24b75e85abca9fddfa314f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8054 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/trace')
-rw-r--r--src/usr/trace/buffer.C6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/trace/buffer.C b/src/usr/trace/buffer.C
index a405f54c7..425df2ac7 100644
--- a/src/usr/trace/buffer.C
+++ b/src/usr/trace/buffer.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* COPYRIGHT International Business Machines Corp. 2012,2014 */
/* */
/* p1 */
/* */
@@ -484,6 +484,10 @@ namespace TRACE
continue;
}
}
+ else // This entry was too big to fit, so roll back one.
+ {
+ entry = entry->prev;
+ }
break;
}
OpenPOWER on IntegriCloud