#fixed code
                                public void read(String matrixFile){
        BufferedReader reader = getBufferedReader(matrixFile);
        String line;
        boolean isEdgeWeights = false;
        int fromIndex = 0;
        while( ( line = getLine(reader) ) != null ){
            if(line.startsWith("EDGE_WEIGHT_SECTION")){
                isEdgeWeights = true;
                continue;
            }
            if(line.startsWith("DEMAND_SECTION")){
                isEdgeWeights = false;
                continue;
            }
            if(isEdgeWeights){
                String[] tokens = line.split("\\s+");
                String fromId = "" + (fromIndex + 1);
                for(int i=0;i<tokens.length;i++){
                    double distance = Double.parseDouble(tokens[i]);
                    String toId = "" + (i+1);
                    costMatrixBuilder.addTransportDistance(fromId,toId,distance);
                    costMatrixBuilder.addTransportTime(fromId, toId, distance);
                }
                fromIndex++;
            }
        }
        close(reader);
    }
#vulnerable code 
                                public void read(String matrixFile){
        BufferedReader reader = getBufferedReader(matrixFile);
        String line;
        boolean isEdgeWeights = false;
        int fromIndex = 0;
        while( ( line = getLine(reader) ) != null ){
            if(line.startsWith("EDGE_WEIGHT_SECTION")){
                isEdgeWeights = true;
                continue;
            }
            if(line.startsWith("DEMAND_SECTION")){
                isEdgeWeights = false;
                continue;
            }
            if(isEdgeWeights){
                String[] tokens = line.split("\\s+");
                String fromId = "" + (fromIndex + 1);
                for(int i=0;i<tokens.length;i++){
                    double distance = Double.parseDouble(tokens[i]);
                    String toId = "" + (i+1);
                    costMatrixBuilder.addTransportDistance(fromId,toId,distance);
                    costMatrixBuilder.addTransportTime(fromId, toId, distance);
                }
                fromIndex++;
            }
        }
    } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK