From d5178b8dc53d1130a4c564a6cf233bc29fe82931 Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Wed, 28 Jul 2021 09:23:14 -0400 Subject: Remove input buffer global variables - Removed input buffers from app_common and added them as a local variable to functions where inputBuffer was being used - Added #define for MAX_LINE_LENGTH in files where it is used - Changed Explanations::load to use a string instead of a C-string --- tester/covoar/ObjdumpProcessor.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tester/covoar/ObjdumpProcessor.cc') diff --git a/tester/covoar/ObjdumpProcessor.cc b/tester/covoar/ObjdumpProcessor.cc index 2bf1685..d324440 100644 --- a/tester/covoar/ObjdumpProcessor.cc +++ b/tester/covoar/ObjdumpProcessor.cc @@ -24,6 +24,8 @@ #include "rld.h" #include "rld-process.h" +#define MAX_LINE_LENGTH 512 + namespace Coverage { void finalizeSymbol( @@ -136,6 +138,7 @@ namespace Coverage { FILE* loadAddressFile = NULL; char* cStatus; uint32_t offset; + char inputBuffer[MAX_LINE_LENGTH]; // This method should only be call for a dynamic library. if (!theExecutable->hasDynamicLibrary()) -- cgit v1.2.3