    public int addWorkUnit(WorkUnit workUnit, long fileModificationTimeInMillis, long fileSize) {
        workUnitList.add(workUnit);
        if (fileModificationTimeInMillis < oldestFileModificationTime) {
            oldestFileModificationTime = fileModificationTimeInMillis;
        }
        if (fileModificationTimeInMillis > youngestFileModificationTime) {
            youngestFileModificationTime = fileModificationTimeInMillis;
        }
        totalFileSize += fileSize;
        return size();
    }
The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid.