Change integer types to ssize_t and size_t in readData and review the MISRA C++ suppressions for validity.