This cannot actually occur because  "statusRemaining_ " is a size_t. Therefore the last two lines will never be executed. This in turn makes me notice that there is no check that compares the result of "read" to the actual value of statusRemaining_...