summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/framework/register/iipCaptureData.h
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2019-01-16 13:43:02 -0600
committerZane C. Shelley <zshelle@us.ibm.com>2019-01-22 09:38:56 -0600
commit12264bb842174f95caa64be7aaa375b33839f805 (patch)
treeabbb48cbc0799225dd9d3b90cb78afedb2237bbb /src/usr/diag/prdf/common/framework/register/iipCaptureData.h
parent9c50b31d9770a16a13a89f23075ae45c077400c2 (diff)
downloadblackbird-hostboot-12264bb842174f95caa64be7aaa375b33839f805.tar.gz
blackbird-hostboot-12264bb842174f95caa64be7aaa375b33839f805.zip
PRD: buffer overrun issue in PRD capture data
Change-Id: I720c84c77cef6029501596b5dd4ba7dc7c2f8fbb CQ: SW453391 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70563 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70704 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/common/framework/register/iipCaptureData.h')
-rwxr-xr-xsrc/usr/diag/prdf/common/framework/register/iipCaptureData.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/usr/diag/prdf/common/framework/register/iipCaptureData.h b/src/usr/diag/prdf/common/framework/register/iipCaptureData.h
index f1a9d4d35..e65e94d3f 100755
--- a/src/usr/diag/prdf/common/framework/register/iipCaptureData.h
+++ b/src/usr/diag/prdf/common/framework/register/iipCaptureData.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2017 */
+/* Contributors Listed Below - COPYRIGHT 2012,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -247,19 +247,18 @@ public:
void Drop(RegType type); //@jl04a
// end @jl04a
- /**
- Copy caputre data to buffer
- <ul>
- <br><b>Parameter: ptr to buffer to place capture data
- <br><b>Parameter: maxsize of buffer area
- <br><b>Returns: Returns the number of bytes copied
- <br><b>Requirements: None
- <br><b>Promises: bytes copied <= bufferSize
- <br><b>Notes: Caputure data is placed in the buffer in the order it exists
- in the vector until done or buffer is full
- <ul><br>
- */
- unsigned int Copy(uint8_t * buffer, unsigned int bufferSize) const;
+ /**
+ * @brief Copies the capture data to a buffer.
+ *
+ * The capture data is copied to the buffer in the order it exists in the
+ * vector until all entries have been added or until the buffer is full.
+ *
+ * @param i_buffer Pointer to buffer.
+ * @param i_bufferSize Maximum size of the buffer.
+ * @return The actual size of the data buffer. The value will always be less
+ * than or equal to the maximum buffer size.
+ */
+ uint32_t Copy( uint8_t * i_buffer, uint32_t i_bufferSize ) const;
// dg08a -->
/**
OpenPOWER on IntegriCloud