aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingUtils.hpp
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2020-07-28 11:29:04 +0100
committerJim Flynn <jim.flynn@arm.com>2020-07-28 12:56:21 +0000
commitc135179c935e3f85e591014e14be81b3f2597825 (patch)
treec75d688518c1b4573c5fdb9408eb738c9dba30e1 /src/profiling/ProfilingUtils.hpp
parent1a26896fd8d48205393ba0f22db864b5302b703f (diff)
downloadarmnn-c135179c935e3f85e591014e14be81b3f2597825.tar.gz
IVGCVSW-5079 Fix for Timeline decoder segfaults when given bad data
* Check packet size/length in ReadSwTraceMessage * Update existing Unit tests * Add new Unit tests Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Ie15be8bc289d7bcb354a259312aada5268bff4e4
Diffstat (limited to 'src/profiling/ProfilingUtils.hpp')
-rw-r--r--src/profiling/ProfilingUtils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profiling/ProfilingUtils.hpp b/src/profiling/ProfilingUtils.hpp
index 985c49ef10..833b73d963 100644
--- a/src/profiling/ProfilingUtils.hpp
+++ b/src/profiling/ProfilingUtils.hpp
@@ -214,7 +214,7 @@ enum class TimelinePacketStatus
uint32_t CalculateSizeOfPaddedSwString(const std::string& str);
-SwTraceMessage ReadSwTraceMessage(const unsigned char*, unsigned int& offset);
+SwTraceMessage ReadSwTraceMessage(const unsigned char*, unsigned int&, const unsigned int& packetLength);
TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid,
const std::string& label,