#vulnerable code 
                                @Test
    public void testCarriageReturnEndings() throws IOException {
        final String code = "foo\rbaar,\rhello,world\r,kanu";
        final CSVParser parser = new CSVParser(new StringReader(code));
        final List<CSVRecord> records = parser.getRecords();
        assertEquals(4, records.size());
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testCarriageReturnEndings() throws IOException {
        final String code = "foo\rbaar,\rhello,world\r,kanu";
        final CSVParser parser = CSVParser.parseString(code);
        final List<CSVRecord> records = parser.getRecords();
        assertEquals(4, records.size());
    }