Changeset: bb3efdc23c6a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bb3efdc23c6a
Modified Files:
        sql/backends/monet5/bam/bam_wrapper.c
Branch: Oct2014
Log Message:

Use after free.


diffs (18 lines):

diff --git a/sql/backends/monet5/bam/bam_wrapper.c 
b/sql/backends/monet5/bam/bam_wrapper.c
--- a/sql/backends/monet5/bam/bam_wrapper.c
+++ b/sql/backends/monet5/bam/bam_wrapper.c
@@ -1023,11 +1023,12 @@ process_header(bam_wrapper * bw)
                                                                   
pg_fields_found[4]);
 
                                        /* if this point is reached, option 
wasn't recognized */
-                                       clear_bam_header_line(&hl);
-                                       throw(MAL, "process_header",
+                                       msg = createException(MAL, 
"process_header",
                                                  ERR_PROCESS_HEADER
                                                  "Unknown option '%s' found in 
header tag PG",
                                                  bw->file_location, 
hl.options[o].tag);
+                                       clear_bam_header_line(&hl);
+                                       return msg;
                                }
                                if (!pg_fields_found[0]) {
                                        clear_bam_header_line(&hl);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to