f1fabcfd64
* rocr: Fix Incorrect Assertion Check The wrong variable is used in the assertion statement, should be error checking for the value of paramEndLoc after it is modified by the call to find(). Signed-off-by: Sunday Clement <Sunday.Clement@amd.com> * rocr: Fix Potential Undefined Behaviour In the event that the SvmProfileControl destructor is called and event == -1 is true then the call to close(event) is effectively close(-1) which is undefined behaviour. This has been changed to only call close() on valid file descriptors. Signed-off-by: Sunday Clement <Sunday.Clement@amd.com> * rocr: Add Error Check on Bytes Read In the case that there is an incomplete read the call to copyTo() will now return an error. Signed-off-by: Sunday Clement <Sunday.Clement@amd.com> * rocr: Fix Exception Error Destructors are implicitly marked with noexcept being true by default so if its not explicitly marked false in the destructor or the functions it calls, any thrown exceptions will cause the program to crash. Signed-off-by: Sunday Clement <Sunday.Clement@amd.com> --------- Signed-off-by: Sunday Clement <Sunday.Clement@amd.com> Co-authored-by: Sunday Clement <Sunday.Clement@amd.com>